Blender V4.3
blender::meshintersect Namespace Reference

Classes

class  CDT_input
 
class  CDT_result
 
class  CDT_state
 
struct  CDTArrangement
 
struct  CDTEdge
 
struct  CDTFace
 
struct  CDTVert
 
struct  FatCo
 
struct  FatCo< double >
 
struct  SymEdge
 

Functions

CDT_result< doubledelaunay_2d_calc (const CDT_input< double > &input, CDT_output_type output_type)
 
template<typename T >
T math_abs (const T v)
 
template<>
double math_abs< double > (const double v)
 
template<typename T >
double math_to_double (const T)
 
template<>
double math_to_double< double > (const double v)
 
template<typename T >
SymEdge< T > * sym (const SymEdge< T > *se)
 
template<typename T >
SymEdge< T > * prev (const SymEdge< T > *se)
 
template<typename T >
std::ostream & operator<< (std::ostream &stream, const FatCo< T > &co)
 
template<typename T >
std::string vertname (const CDTVert< T > *v)
 
static std::string trunc_ptr (const void *p)
 
template<typename T >
std::string sename (const SymEdge< T > *se)
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const SymEdge< T > &se)
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const SymEdge< T > *se)
 
template<typename T >
std::string short_se_dump (const SymEdge< T > *se)
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const CDT_state< T > &cdt_state)
 
template<typename T >
void cdt_draw (const std::string &label, const CDTArrangement< T > &cdt)
 
template<typename T >
CDT_input< Tfill_input_from_string (const char *spec)
 
static int get_orig_index (const Span< Vector< int > > out_to_orig, int orig_index)
 
template<typename T >
static double math_to_double (const T)
 
template<>
double math_to_double< double > (const double v)
 
template<typename T >
static T math_abs (const T v)
 
template<>
double math_abs (const double v)
 
template<typename T >
int get_vertex_by_coord (const CDT_result< T > &out, double x, double y)
 
template<typename T >
int get_output_edge_index (const CDT_result< T > &out, int out_index_1, int out_index_2)
 
template<typename T >
bool output_edge_has_input_id (const CDT_result< T > &out, int out_edge_index, int in_edge_index)
 
template<typename T >
int get_output_face_index (const CDT_result< T > &out, const Array< int > &poly)
 
template<typename T >
int get_output_tri_index (const CDT_result< T > &out, int out_index_1, int out_index_2, int out_index_3)
 
template<typename T >
bool output_face_has_input_id (const CDT_result< T > &out, int out_face_index, int in_face_index)
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const CDT_result< T > &r)
 
template<typename T >
void graph_draw (const std::string &label, const Span< VecBase< T, 2 > > verts, const Span< std::pair< int, int > > edges, const Span< Vector< int > > faces)
 

Variables

static bool draw_append = false
 

Function Documentation

◆ cdt_draw()

template<typename T >
void blender::meshintersect::cdt_draw ( const std::string & label,
const CDTArrangement< T > & cdt )

◆ delaunay_2d_calc()

◆ fill_input_from_string()

◆ get_orig_index()

static int blender::meshintersect::get_orig_index ( const Span< Vector< int > > out_to_orig,
int orig_index )
static

◆ get_output_edge_index()

template<typename T >
int blender::meshintersect::get_output_edge_index ( const CDT_result< T > & out,
int out_index_1,
int out_index_2 )

◆ get_output_face_index()

template<typename T >
int blender::meshintersect::get_output_face_index ( const CDT_result< T > & out,
const Array< int > & poly )

Definition at line 184 of file BLI_delaunay_2d_test.cc.

References int.

Referenced by get_output_tri_index().

◆ get_output_tri_index()

template<typename T >
int blender::meshintersect::get_output_tri_index ( const CDT_result< T > & out,
int out_index_1,
int out_index_2,
int out_index_3 )

◆ get_vertex_by_coord()

template<typename T >
int blender::meshintersect::get_vertex_by_coord ( const CDT_result< T > & out,
double x,
double y )

Definition at line 146 of file BLI_delaunay_2d_test.cc.

References e, fabs(), int, and math_to_double().

Referenced by twoface2_test().

◆ graph_draw()

◆ math_abs() [1/3]

template<>
double blender::meshintersect::math_abs ( const double v)

Definition at line 138 of file BLI_delaunay_2d_test.cc.

References fabs(), and v.

◆ math_abs() [2/3]

template<typename T >
T blender::meshintersect::math_abs ( const T v)

Definition at line 33 of file delaunay_2d.cc.

References v.

Referenced by overlapfaces_test().

◆ math_abs() [3/3]

template<typename T >
static T blender::meshintersect::math_abs ( const T v)
static

Definition at line 33 of file delaunay_2d.cc.

References v.

Referenced by overlapfaces_test().

◆ math_abs< double >()

Definition at line 45 of file delaunay_2d.cc.

References fabs(), and v.

◆ math_to_double() [1/2]

template<typename T >
double blender::meshintersect::math_to_double ( const T )

Definition at line 50 of file delaunay_2d.cc.

References BLI_assert.

Referenced by get_vertex_by_coord(), and graph_draw().

◆ math_to_double() [2/2]

template<typename T >
static double blender::meshintersect::math_to_double ( const T )
static

Definition at line 111 of file BLI_delaunay_2d_test.cc.

References BLI_assert.

◆ math_to_double< double >() [1/2]

Definition at line 63 of file delaunay_2d.cc.

References v.

◆ math_to_double< double >() [2/2]

Definition at line 117 of file BLI_delaunay_2d_test.cc.

References v.

◆ operator<<() [1/5]

◆ operator<<() [2/5]

◆ operator<<() [3/5]

template<typename T >
std::ostream & blender::meshintersect::operator<< ( std::ostream & os,
const SymEdge< T > & se )

◆ operator<<() [4/5]

template<typename T >
std::ostream & blender::meshintersect::operator<< ( std::ostream & os,
const SymEdge< T > * se )

Definition at line 392 of file delaunay_2d.cc.

◆ operator<<() [5/5]

template<typename T >
std::ostream & blender::meshintersect::operator<< ( std::ostream & stream,
const FatCo< T > & co )

Definition at line 174 of file delaunay_2d.cc.

References blender::meshintersect::FatCo< T >::approx.

◆ output_edge_has_input_id()

template<typename T >
bool blender::meshintersect::output_edge_has_input_id ( const CDT_result< T > & out,
int out_edge_index,
int in_edge_index )

◆ output_face_has_input_id()

template<typename T >
bool blender::meshintersect::output_face_has_input_id ( const CDT_result< T > & out,
int out_face_index,
int in_face_index )

◆ prev()

template<typename T >
SymEdge< T > * blender::meshintersect::prev ( const SymEdge< T > * se)
inline

◆ sename()

template<typename T >
std::string blender::meshintersect::sename ( const SymEdge< T > * se)

Definition at line 373 of file delaunay_2d.cc.

References trunc_ptr().

Referenced by cdt_draw().

◆ short_se_dump()

template<typename T >
std::string blender::meshintersect::short_se_dump ( const SymEdge< T > * se)

◆ sym()

◆ trunc_ptr()

static std::string blender::meshintersect::trunc_ptr ( const void * p)
static

Definition at line 365 of file delaunay_2d.cc.

References POINTER_AS_INT.

Referenced by if(), operator<<(), and sename().

◆ vertname()

template<typename T >
std::string blender::meshintersect::vertname ( const CDTVert< T > * v)

Definition at line 357 of file delaunay_2d.cc.

References v.

Referenced by add_edge_constraint(), cdt_draw(), operator<<(), operator<<(), and short_se_dump().

Variable Documentation

◆ draw_append

bool blender::meshintersect::draw_append = false
static

Definition at line 263 of file BLI_delaunay_2d_test.cc.

Referenced by graph_draw().