Lagrange
Loading...
Searching...
No Matches
SphereConfig 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.
 
Scalar get_effective_sweep_angle () const
 Get the effective sweep angle based on start and end angles.
 

Public Attributes

Shape parameters.
Scalar radius = 1
 
Scalar sweep_angle = static_cast<Scalar>(2 * lagrange::internal::pi)
 
Scalar start_sweep_angle = 0
 
Scalar end_sweep_angle = static_cast<Scalar>(2 * lagrange::internal::pi)
 
Index num_longitude_sections = 32
 
Index num_latitude_sections = 32
 
Eigen::Matrix< Scalar, 3, 1 > center {0, 0, 0}
 
bool with_cross_section = true
 
Output parameters
bool output_normals = true
 
Tolerances.
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.

◆ get_effective_sweep_angle()

Scalar get_effective_sweep_angle ( ) const
inline

Get the effective sweep angle based on start and end angles.

This is used internally to maintain backward compatibility.

Member Data Documentation

◆ sweep_angle

Scalar sweep_angle = static_cast<Scalar>(2 * lagrange::internal::pi)
Deprecated
Use start_sweep_angle and end_sweep_angle instead. This parameter will be removed in a future version.

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