A right circular cone or frustum geometry.
- iOS 8.0+
- macOS 10.8+
- tvOS 9.0+
- watchOS 2.0+
A cone defines the surface of a solid whose base is a circle and whose side surface tapers to a point centered above its base. A frustum also has a circular base and tapered sides but has a circular top, similar to a cone cut off below its apex.
Define the size of the cone’s base in the x- and z-axis dimensions of its local coordinate space with its
bottom property, and its extent in the y-axis dimension with its
height property. Create a cone that tapers to a point by setting its
top property to zero, or a frustum that tapers (or expands) to a circular top by setting the
top property to a different value.
Control the level of detail with the
height properties. A higher radial segment count creates a smoother curve for the cone’s circular sides. A higher segment count in either direction produces more vertices, which can improve rendering quality for certain lighting models or custom shader effects, but at a cost to rendering performance.
A cone geometry may contain two or three
SCNGeometry objects, corresponding to its outer surface, its base and its top (or base only or top only, if the
bottom property is zero). SceneKit can render each element using a different material. For details, see the
materials property in