Class Cylinder


  • public class Cylinder
    extends Primitive
    Cylinder primitive.
    • Constructor Detail

      • Cylinder

        public Cylinder​(long cPtr,
                        boolean cMemoryOwn)
      • Cylinder

        public Cylinder()
        Default constructor with no parameters.
      • Cylinder

        public Cylinder​(float radius,
                        float height)
        Cylinder with parameters specified.

        Parameters:
        radius - the radius.
        height - the height.
    • Method Detail

      • getCPtr

        public static long getCPtr​(Cylinder obj)
      • getRadius

        public double getRadius()
      • getHeight

        public double getHeight()
      • createMesh

        public TriMeshPtr createMesh​(int resolution)
        Create a mesh representation of the cylinder.

        Overrides:
        createMesh in class Primitive
        Parameters:
        resolution - the resolution.
        Returns:
        the TriMesh.