Class Primitive

    • Constructor Detail

      • Primitive

        public Primitive​(long cPtr,
                         boolean cMemoryOwn)
    • Method Detail

      • getCPtr

        public static long getCPtr​(Primitive obj)
      • getTriMesh

        public TriMeshPtr getTriMesh​(boolean forceCopy)

        Note: primitives allways return a new trimesh
        Overrides:
        getTriMesh in class GeometryData
        Returns:
        TriMesh representation of this GeometryData
      • getTriMesh

        public TriMeshPtr getTriMesh()

        Note: primitives allways return a new trimesh
        Overrides:
        getTriMesh in class GeometryData
        Returns:
        TriMesh representation of this GeometryData
      • createMesh

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

        public Q getParameters()
        get the parameters that define this primitive
      • setParameters

        public void setParameters​(Q q)
        set the parameters that define this primitive
      • isConvex

        public boolean isConvex()
        Description copied from class: GeometryData
        test if this geometry data is convex
        Overrides:
        isConvex in class GeometryData
        Returns:
        true if convex
      • isInside

        public boolean isInside​(Vector3D point)
        test if a point is on the border or inside this primitive