Blender V5.0
dualcon_c_api.cpp File Reference
#include "ModelReader.h"
#include "dualcon.h"
#include "octree.h"
#include <algorithm>
#include <cassert>
#include <cfloat>
#include <cmath>

Go to the source code of this file.

Classes

class  DualConInputReader

Macros

#define GET_TRI(_mesh, _n)
#define GET_CO(_mesh, _n)
#define GET_CORNER_VERT(_mesh, _n)

Functions

static void veccopy (float dst[3], const float src[3])
void * dualcon (const DualConInput *input_mesh, DualConAllocOutput alloc_output, DualConAddVert add_vert, DualConAddQuad add_quad, DualConFlags flags, DualConMode mode, float threshold, float hermite_num, float scale, int depth)

Macro Definition Documentation

◆ GET_CO

#define GET_CO ( _mesh,
_n )
Value:
(*(DualConCo)(((char *)(_mesh)->co) + ((_n) * (_mesh)->co_stride)))
float(* DualConCo)[3]
Definition dualcon.h:12

Definition at line 24 of file dualcon_c_api.cpp.

Referenced by DualConInputReader::getNextTriangle().

◆ GET_CORNER_VERT

#define GET_CORNER_VERT ( _mesh,
_n )
Value:
(*(DualConCornerVerts)(((char *)(_mesh)->corner_verts) + ((_n) * (_mesh)->corner_verts_stride)))
unsigned int * DualConCornerVerts
Definition dualcon.h:16

Definition at line 26 of file dualcon_c_api.cpp.

Referenced by DualConInputReader::getNextTriangle().

◆ GET_TRI

#define GET_TRI ( _mesh,
_n )
Value:
(*(DualConTri)(((char *)(_mesh)->corner_tris) + ((_n) * (_mesh)->tri_stride)))
unsigned int(* DualConTri)[3]
Definition dualcon.h:14

Definition at line 21 of file dualcon_c_api.cpp.

Referenced by DualConInputReader::getNextTriangle(), and DualConInputReader::getNextTriangle().

Function Documentation

◆ dualcon()

void * dualcon ( const DualConInput * input_mesh,
DualConAllocOutput alloc_output,
DualConAddVert add_vert,
DualConAddQuad add_quad,
DualConFlags flags,
DualConMode mode,
float threshold,
float hermite_num,
float scale,
int depth )

Definition at line 144 of file dualcon_c_api.cpp.

References Octree::getOutputMesh(), and Octree::scanConvert().

◆ veccopy()

void veccopy ( float dst[3],
const float src[3] )
static