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

Configuration struct for rounded cube. More...

#include <lagrange/primitive/legacy/generate_rounded_cube.h>

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 width = 1
 
Scalar height = 1
 
Scalar depth = 1
 
Scalar radius = 0
 
Index num_round_segments = 8
 
Index num_width_segments = 1
 
Index num_height_segments = 1
 
Index num_depth_segments = 1
 
Eigen::Matrix< Scalar, 3, 1 > center {0, 0, 0}
 
Output parameters.
bool output_normals = true
 
Tolerances.
Scalar angle_threshold = static_cast<Scalar>(11 * lagrange::internal::pi / 180)
 An edge is sharp iff its dihedral angle is larger than angle_threshold.
 
Scalar dist_threshold = static_cast<Scalar>(1e-6)
 Two vertices are considered coinciding iff the distance between them is smaller than dist_threshold.
 

Detailed Description

Configuration struct for rounded cube.

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: