SFCGAL  2.3.0
Public Attributes | List of all members
SFCGAL::algorithm::ChamferOptions Struct Reference

Options for chamfer/fillet operations. More...

#include <Chamfer.h>

Public Attributes

ChamferType type = ChamferType::FLAT
 Type of operation: FLAT (chamfer) or ROUND (fillet) More...
 
double radius = 0.1
 Distance from the edge along each face surface. More...
 
double radius_y = -1.0
 Secondary distance for asymmetric FLAT chamfers: leg length on the second face. More...
 
int segments = 8
 Number of linear segments approximating the fillet arc (ROUND only). More...
 
double epsilon = 1e-3
 Tolerance (in coordinate units) for matching input edge endpoints to the solid's mesh vertices. More...
 

Detailed Description

Options for chamfer/fillet operations.

Member Data Documentation

double SFCGAL::algorithm::ChamferOptions::epsilon = 1e-3

Tolerance (in coordinate units) for matching input edge endpoints to the solid's mesh vertices.

Default 1e-3 accommodates numeric drift from coordinate transformations.

double SFCGAL::algorithm::ChamferOptions::radius = 0.1

Distance from the edge along each face surface.

For FLAT: length of the chamfer leg on the first face. For ROUND: radius of the circular arc tangent to both faces. Must be positive.

double SFCGAL::algorithm::ChamferOptions::radius_y = -1.0

Secondary distance for asymmetric FLAT chamfers: leg length on the second face.

If negative, defaults to radius (symmetric chamfer). Ignored for ROUND type.

int SFCGAL::algorithm::ChamferOptions::segments = 8

Number of linear segments approximating the fillet arc (ROUND only).

Typical values: 4 (coarse), 8 (default), 16+ (smooth). Must be >= 1. Ignored for FLAT type.

ChamferType SFCGAL::algorithm::ChamferOptions::type = ChamferType::FLAT

Type of operation: FLAT (chamfer) or ROUND (fillet)