solid.Shape.numfaces
solid.Shape: N = numfaces (S)
The number of faces of a shape.
A box has six. A cylinder has three, its curved side being one face.
It is a quick check that a feature did what was meant: a bore adds one face, and a fillet one for each edge it rounds.
## Six flat faces and the bore
S = subtract (solid.box (40, 30, 10), ...
translate (solid.cylinder (5, 10), [20, 15, 0]));
numfaces (S)
⇒ 7
|
See also: solid.Shape.numsolids, solid.Shape.numedges
Source Code: solid.Shape