SFCGAL 2.3.0
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).
double radius = 0.1
 Distance from the edge along each face surface.
double radius_y = -1.0
 Secondary distance for asymmetric FLAT chamfers: leg length on the second face.
int segments = 8
 Number of linear segments approximating the fillet arc (ROUND only).
double epsilon = 1e-3
 Tolerance (in coordinate units) for matching input edge endpoints to the solid's mesh vertices.

Detailed Description

Options for chamfer/fillet operations.

Member Data Documentation

◆ epsilon

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.

◆ radius

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.

◆ radius_y

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.

◆ segments

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.

◆ type

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

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