ConeMesh constructor
ConeMesh({})
Creates a conical mesh with a circular base of radius radius
on the x-z
plane and a height of height
pointing upwards parallel to the y-axis.
You can optionally specify the number of segments used for the triangulation (the higher, the more "high-res" the cone will be).
Implementation
ConeMesh({
required double radius,
required double height,
required Material material,
int segments = 32,
}) {
_addBaseSurface(
radius: radius,
material: material,
segments: segments,
);
_addSideSurface(
radius: radius,
height: height,
material: material,
segments: segments,
);
}