solid.Shape

Methods

Method Reference: solid.Shape.chamfer

solid.Shape: S = chamfer (S, E, D)

solid.Shape: S = chamfer (S, E, [D1, D2], F)

solid.Shape: S = chamfer (S, E, D, F, 'Angle', A)

Bevel edges of a shape.

S = chamfer (S, E, D) cuts the edges of S indexed by E, as solid.Shape.edges returns them, back by D millimetres on both faces, so a chamfer on a square corner is the 45 degree bevel a drawing calls D x 45. An edge is bevelled together with every edge that runs on from it smoothly, tangent where they meet, as Open CASCADE bevels a chain. On a box whose upright edges are already rounded, choosing one top edge bevels the whole top rim.

S = chamfer (S, E, [D1, D2], F) cuts each edge back by D1 along the face F, a face index as solid.Shape.faces returns one, and by D2 along the other face of the edge. Every edge must bound F, as the edges round a face do: edges (S, 'Face', F).

S = chamfer (S, E, D, F, 'Angle', A) cuts each edge back by D along the face F, with the chamfer face meeting F at A degrees, in the range (0, 90): the chamfer a drawing calls D x A. Along the other face it reaches D * tand (A), so 45 degrees is the equal chamfer.

A chamfer too large for the faces beside an edge cannot be built and raises an error, as does an edge that cannot be chamfered at all.

 
 ## The top rim of a plate bevelled 1 x 45, and 2 x 30
 S = solid.box (40, 30, 10);
 F = faces (S, 'Normal', [0, 0, 1]);
 A = chamfer (S, edges (S, 'Face', F), 1);
 B = chamfer (S, edges (S, 'Face', F), 2, F, 'Angle', 30);

See also: solid.Shape.edges, solid.Shape.fillet

Source Code: solid.Shape