Class Box


  • public class Box
    extends Primitive

    a box primitive, origin is in center of box
    • Constructor Detail

      • Box

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

        public Box()
        constructor - creates a 1x1x1 sided box
      • Box

        public Box​(double x,
                   double y,
                   double z)
        constructor
        Parameters:
        x - [in] width in x axis
        y - [in] width in y axis
        z - [in] width in z axis
      • Box

        public Box​(Q initQ)
        constructor
        Parameters:
        initQ - [in] vector with (x,y,z)
    • Method Detail

      • getCPtr

        public static long getCPtr​(Box obj)
      • 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