Skip to content

Geom.chamfer()

Description

Chamfer operation to take off the corner of a solid body. Unlike fillet, chamfer is applied only to volume solids.

The chamfer is defined by distance r taken from the edge to the line of chamfer and an array of nearby points refs.

Syntax

JS
Geom.chamfer(shp: Shape, r: Number) -> Shape
Geom.chamfer(shp: Shape, r: Number, refs: Array<Point3>) -> Shape

Parameters

Parameter Type Description
shp Shape Body to take the chamfer from.
r Number Distance taken from the edge to the line of chamfer.
refs Array<Point3> Array of nearby points refs to the edges, subject to chamfering.

Return value

Type Description
Shape The result of the operation with the chamfer.

Example

JS
1
2
3
let box = Geom.box(100, 100, 100);
let s = Geom.chamfer(box, 1);
console.info(result);

See also

Geom.fillet()

Last update: 14 August 2025, 18:47