Class Sphere


  • public class Sphere
    extends Primitive

    a sphere primitive. centr in (0,0,0) and a radius.
    • Constructor Detail

      • Sphere

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

        public Sphere​(Q initQ,
                      int levels)
        constructor
      • Sphere

        public Sphere​(Q initQ)
        constructor
      • Sphere

        public Sphere​(double radi,
                      int levels)
        constructor
      • Sphere

        public Sphere​(double radi)
        constructor
    • Method Detail

      • getCPtr

        public static long getCPtr​(Sphere obj)
      • getRadius

        public double getRadius()
        get sphere radius
      • createMesh

        public TriMeshPtr createMesh​(int resolution)
        Description copied from class: Primitive
        make a trimesh from this primitive. Use granularity to
        specify minimum number of line segments a half circle is split into
        Overrides:
        createMesh in class Primitive
        Parameters:
        resolution - [in]
      • getParameters

        public Q getParameters()
        Description copied from class: Primitive
        get the parameters that define this primitive
        Overrides:
        getParameters in class Primitive
      • setParameters

        public void setParameters​(Q q)
        Description copied from class: Primitive
        set the parameters that define this primitive
        Overrides:
        setParameters in class Primitive