Package limn.render3d
Class Primitives
java.lang.Object
limn.render3d.Primitives
Procedural
MeshData for common shapes, each with POSITION, NORMAL and
UV0. Upload with Graphics3D.upload(...).-
Method Summary
Modifier and TypeMethodDescriptionstatic MeshDatacube(float size) An axis-aligned cube of the given edge length, centered at the origin.static MeshDataplane(float width, float depth) A flat plane in the XZ axis (normal +Y), centered at the origin.static MeshDatasphere(float radius, int rings, int sectors) A UV sphere of the given radius, centered at the origin.
-
Method Details
-
cube
An axis-aligned cube of the given edge length, centered at the origin. -
sphere
A UV sphere of the given radius, centered at the origin. -
plane
A flat plane in the XZ axis (normal +Y), centered at the origin.
-