BRL-CAD
Loading...
Searching...
No Matches
bg_trimesh_remesh_opts Struct Reference

#include <trimesh.h>

Collaboration diagram for bg_trimesh_remesh_opts:
[legend]

Data Fields

int target_count
 
fastf_t count_multiplier
 
fastf_t anisotropy
 
int lloyd_iters
 
int newton_iters
 

Detailed Description

Options governing triangle mesh remeshing operations.

Remeshing regenerates the connectivity of a mesh so that its triangles are more uniform in size and shape while preserving the overall surface. The Geogram CVT (Centroidal Voronoi Tessellation) algorithm is used internally.

Definition at line 519 of file trimesh.h.

Field Documentation

◆ target_count

int target_count

Desired vertex count in output; 0 = use count_multiplier

Definition at line 520 of file trimesh.h.

◆ count_multiplier

fastf_t count_multiplier

Multiply input vertex count by this to obtain target (default 10.0)

Definition at line 521 of file trimesh.h.

◆ anisotropy

fastf_t anisotropy

Anisotropy weight for surface-normal direction; 0.0 = isotropic remesh (default 0.04)

Definition at line 522 of file trimesh.h.

◆ lloyd_iters

int lloyd_iters

Number of Lloyd relaxation iterations (default 5)

Definition at line 523 of file trimesh.h.

◆ newton_iters

int newton_iters

Number of Newton iterations for CVT optimization (default 30)

Definition at line 524 of file trimesh.h.


The documentation for this struct was generated from the following file: