cylinderRadius Method
Test if this cone is a cylinder.
- A cone is cylindrical if both conditions hold:
- cross sections are circles of equal radius
- axis is perpendicular to cross sections
- Radii within smallMetricDistance are considered equal.
cylinderRadius(allowSkew: boolean = false): number
@returns cross sectional radius > 0 if cylindrical cone; otherwise 0 for non-cylindrical or degenerate cone.
| Parameter | Type | Description |
|---|---|---|
| allowSkew | boolean | whether to test the first condition only. Default value is false: test both conditions. |
Returns - number
cross sectional radius > 0 if cylindrical cone; otherwise 0 for non-cylindrical or degenerate cone.
Defined in
- solid/Cone.ts Line 312
Last Updated: 20 May, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.