Class Pyramid


  • public class Pyramid
    extends Primitive
    a pyrimidal geometric primitive. The pyramid has a rectangular base in the xy-plane
    and its end pointed lie in the z-axis with a distance from the xy-plane.
    • Constructor Detail

      • Pyramid

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

        public Pyramid​(Q initQ)
        constructor
      • Pyramid

        public Pyramid​(double widthx,
                       double widthy,
                       double height)
        constructor
        Parameters:
        widthx - [in] width of pyramid in x axis
        widthy - [in] width of pyramid in y-axis
        height - [in] height of pyramid in z-axis
    • Method Detail

      • getCPtr

        public static long getCPtr​(Pyramid 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