Lagrange
Loading...
Searching...
No Matches
TorusConfig Struct Reference

Public Types

using Scalar = float
 
using Index = uint32_t
 

Public Member Functions

void project_to_valid_range ()
 Project config setting into valid range.
 

Public Attributes

Shape parameters.
Scalar major_radius = 5
 
Scalar minor_radius = 1
 
Index ring_segments = 50
 
Index pipe_segments = 50
 
Eigen::Matrix< Scalar, 3, 1 > center {0, 0, 0}
 
Scalar start_sweep_angle = 0
 
Scalar end_sweep_angle = static_cast<Scalar>(2 * lagrange::internal::pi)
 
bool with_caps = true
 
Output parameters.
bool output_normals = true
 
Tolerances.
Scalar dist_threshold = static_cast<Scalar>(1e-6)
 Two vertices are considered coinciding iff the distance between them is smaller than dist_threshold.
 
Scalar angle_threshold = static_cast<Scalar>(11 * lagrange::internal::pi / 180)
 An edge is considered sharp if its dihedral angle is larger than angle_threshold.
 
Scalar epsilon = static_cast<Scalar>(1e-6)
 Numerical tolerence used for comparing Scalar values.
 

Member Function Documentation

◆ project_to_valid_range()

void project_to_valid_range ( )
inline

Project config setting into valid range.

This method ensure all lengths parameters are non-negative, and clip the radius parameter to its valid range.


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