 |
DATAKIT SDK
V2026.1
|
|
Go to the documentation of this file.
63 #ifdef AF51BDA7E49648f8AB95949F4CA52EF8
195 #ifdef AF51BDA7E49648f8AB95949F4CA52EF8
196 void tess_set_ErCorde(
double tol);
197 void tess_set_Discretisation(
double tol);
262 extern
int tess_InitLocalTess();
280 void set_TesselateSurfaceMethod(
int ival);
284 int get_TesselateSurfaceMethod();
Dtk_ErrorStatus tess_ShellToMesh(const Dtk_ShellPtr &inShell, Dtk_MeshPtr &outMesh, Dtk_Int32 *outIsSolid)
Tesselate a shell.
This is a high level face class.
Definition: util_mesh_dtk.hpp:865
int init_stl_write(Dtk_string sfic)
void tess_set_MaxSize(double tol)
Set the maximum size of a triangle edge. Default value: inf (mm)
Dtk_bool _orientation
Definition: tess.h:240
FaceBoundariesToPolylines()
void tess_disableTolAngular(Dtk_bool bval)
Set activation of angular tolerance.
void set_activationSplitModeFromConfig()
int tess_InitTesselation(Dtk_string inWorkingDirectory, double inTolerance)
Init the tesselation library.
#define DTK_TRUE
Definition: define.h:730
void tess_set_Wireframe_Discretisation(double tol)
Set linear tolerance for Wireframe tessellation. Default value is 0.001 (mm). Smaller value produces ...
Dtk_ErrorStatus tess_FaceToMesh(Dtk_FacePtr &inFace, Dtk_MeshPtr &outMesh)
Tesselate a single face.
This is a high level string class.
Definition: dtk_string.hpp:53
SetAsDeprecated("2026.1", "Use tess_InitTesselation() instead.") extern int tess_InitLocalTess()
double tess_get_Ratio()
Get the current maximum ratio between longest and shortest edge of each triangle. See tess_set_Ratio(...
size_t Dtk_Size_t
Definition: define.h:715
void tess_ComputeNormalesFromSurface(int value)
Set normales computation from surface option. Enabled by default. If enabled, the normals of each ver...
#define DTK_FALSE
Definition: define.h:731
char Dtk_bool
Definition: define.h:728
void tess_ComputeBoundariesFromMesh(int value)
Set boundaries computation from mesh option. Default value is enabled (1). See tess_getBoundariesFrom...
int * outIsSolid
Definition: tess.h:276
void get_tesselation_activateSplitMode(int &outmode, double &outratio)
Dtk_FacePtr _face
Definition: tess.h:239
Dtk_ErrorStatus Get_outer(Dtk_tab< Dtk_PolylinePtr > &outpln)
void CheckUseEdgeTolerance(Dtk_bool inBval)
Set usage of edge tolerance to guide the tesselation. Default value is disabled (0).
Dtk_ErrorStatus TesselationIsStarted()
Return current status of tesselation started.
Dtk_bool get_tesselationSuppressDuplicateFace()
Get face duplication option. Returns 1 if enabled, 0 if disabled.
void CheckAutoSurfaceIsSpring(Dtk_bool inBval)
Set automatic surface spring check option. If enabled, all periodic surface will be tesselated more a...
const Dtk_mesh_face Dtk_tab< Dtk_tab< Dtk_MeshPolylinePtr > > & outBoundaries
Definition: tess.h:288
void tess_AddNaturalBoundariesForUnBounded(int value)
Set boundaries computation option. Default value is enabled (1). See tess_getBoundariesFromMeshFace()...
void tess_set_linear(double tol)
Set linear tolerance (mm). Maximum chordal error accepted between the CAD surface and the tesselated ...
Dtk_ErrorStatus tess_BodyToMeshes(const Dtk_BodyPtr &inBodyToWrite, Dtk_tab< Dtk_MeshPtr > &outMeshes, Dtk_tab< Dtk_Int32 > &outIsSolid, Dtk_bool inTessWireframe=DTK_FALSE, Dtk_bool inApplyRenderInfos=DTK_FALSE)
Tesselate a body. Generates one mesh per shell in the body.
int32_t Dtk_Int32
Definition: define.h:690
~FaceBoundariesToPolylines()
double tess_get_MaxSize()
Get the current maximum size of a triangle edge. See tess_set_MaxSize().
int tess_get_optimize_mesh()
Get the current state of the vertex map optimisation. See tess_set_optimize_mesh().
Dtk_ErrorStatus
Definition: error_dtk.hpp:6
double tess_get_angular()
Get the current angular tolerance. See tess_set_angular().
int Dtk_GetMailleFacesVerif()
Get status of additional verification of face/boundaries before tesselation. Returns 1 if enabled,...
Dtk_ErrorStatus tess_FacesArrayToMesh(Dtk_tab< Dtk_FacePtr > &inTabFace, Dtk_MeshPtr &outMesh, Dtk_Int32 *outIsSolid)
Tesselate an array of Faces.
Definition: util_ptr_dtk.hpp:37
void tess_set_Ratio(double tol)
Set a maximum ratio between longest and shortest edge of each triangle. With 1.0 only equilateral tri...
int end_stl_fic(int *ient)
double tess_get_Wireframe_Discretisation()
Get the current linear tolerance for Wireframe tessellation. See tess_set_Wireframe_Discretisation().
Dtk_ErrorStatus Get_inner(Dtk_tab< Dtk_PolylinePtr > &outpln, Dtk_Size_t number)
Dtk_ErrorStatus tess_TesselateFeature_to_dtk_mesh(Dtk_FeaturePtr &feat, Dtk_MeshPtr &outMesh)
void tess_getBoundariesFromMeshFace(const Dtk_MeshPtr &mesh, const Dtk_mesh_face *inFace, Dtk_tab< Dtk_tab< Dtk_PolylinePtr >> &outBoundaries)
Get the boundaries (outer and inner) of a mesh face as polylines. Each shell yields a Dtk_mesh,...
void tess_set_optimize_mesh(int ival)
Set a vertex map optimisation that reduces the mesh memory footprint (the geometry stay the same)....
This is a high level array class.
Definition: util_stl_dtk.hpp:84
Dtk_Size_t size() const
Returns the size of the array.
Definition: util_stl_dtk.hpp:503
const Dtk_mesh_face * inFace
Definition: tess.h:288
int write_mesh_solid(const Dtk_MeshPtr &tm)
void tess_set_angular(double angle)
Set angular tolerance (radian). Default value: 10°. Maximum angle between a triangle and the CAD surf...
void set_tesselationSuppressDuplicateFace(Dtk_bool inBval)
Set face duplication option. Default value is enabled (1).
void tess_disableTolLinear(Dtk_bool bval)
Set activation of linear tolerance.
void Dtk_SetMailleFacesVerif(int bval)
Set additional verification of face/boundaries before tesselation. Default false (0).
void tess_EndTesselation()
Free the data used by tesselation library.
double tess_get_linear()
Get the current linear tolerance. See tess_set_linear().
Dtk_ErrorStatus Create(Dtk_FacePtr &inFace, const double inTolBound)
void set_tesselation_activateSplitMode(const int inmode, const double inratio)
Dtk_ErrorStatus CheckStatus()
Definition: tess.h:234
Dtk_Size_t Get_Nbinner()
Definition: tess.h:232