|
Blender V4.3
|
#include <BLI_delaunay_2d.hh>
Public Attributes | |
| Array< VecBase< T, 2 > > | vert |
| Array< std::pair< int, int > > | edge |
| Array< Vector< int > > | face |
| T | epsilon {0} |
| bool | need_ids {true} |
Input to Constrained Delaunay Triangulation. Input vertex coordinates are stored in vert. For the rest of the input, vertices are referred to by indices into that array. Edges and Faces are optional. If provided, they will appear in the output triangulation ("constraints"). One can provide faces and not edges – the edges implied by the faces will be inferred.
The edges are given by pairs of vertex indices. The faces are given as groups of vertex indices, in counterclockwise order.
The edges implied by the faces are automatically added and need not be put in the edges array, which is intended as a way to specify edges that are not part of any face.
Some notes about some special cases and how they are handled:
Epsilon is used for "is it near enough" distance calculations. If zero is supplied for epsilon, an internal value of 1e-8 used instead, since this code will not work correctly if it is not allowed to merge "too near" vertices.
Normally the output will contain mappings from outputs to inputs. If this is not needed, set need_ids to false and the execution may be much faster in some circumstances.
Definition at line 126 of file BLI_delaunay_2d.hh.
Definition at line 129 of file BLI_delaunay_2d.hh.
Referenced by blender::meshintersect::fill_input_from_string().
| T blender::meshintersect::CDT_input< T >::epsilon {0} |
Definition at line 131 of file BLI_delaunay_2d.hh.
Referenced by blender::meshintersect::fill_input_from_string().
Definition at line 130 of file BLI_delaunay_2d.hh.
Referenced by blender::meshintersect::fill_input_from_string().
| bool blender::meshintersect::CDT_input< T >::need_ids {true} |
Definition at line 132 of file BLI_delaunay_2d.hh.
Referenced by blender::nodes::node_geo_curve_fill_cc::do_cdt_with_mask().
Definition at line 128 of file BLI_delaunay_2d.hh.
Referenced by blender::meshintersect::fill_input_from_string(), blender::io::obj::fixup_invalid_face(), and M_Geometry_delaunay_2d_cdt().