Create Mesh Primitive¶
Algorithm to create meshes for simple geometries.
Input¶
None.
Output¶
A new mesh representing a geometric primitive specified through the provided parameters.
Description¶
Algorithm generates a new mesh that represents the specified geometric primitive.
- Primitive: Specifies the geometric primitive the mesh represents (e.g. sphere, cylinder, …)
- Radius or Size: Specifies the radius for types sphere, icosahedron and cylinder and the base edge length for types cube and pyramid. Has no effect on type cone.
- Height: Specifies the length for the cylinder, tip height for the pyramid and both the tip height and base radius for the cone. No effect on other types.
- Samples: Scaling factor for the number of vertices when approximating the geometry. Scaling is roughly linear with this number for cylinder and cone, but quadratic for sphere. Has no effect on other types.
- Subdivision: Specifies the subdivision of the icosahedron. Number of triangles scales quadratically with this factor. Has no effect on other types.
- Smooth Icosphere: Flag that specifies whether the vertex normals of the icosphere should correspond to those of a real sphere, which produces smooth lighting.