Package org.robwork.sdurw_geometry
Class IndexedQuadraticFaceArray
- java.lang.Object
-
- org.robwork.sdurw_geometry.IndexedQuadraticFaceArray
-
public class IndexedQuadraticFaceArray extends java.lang.ObjectProxy class for a QuadraticShell, that allows sorting of faces without modifying the
original object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIndexedQuadraticFaceArray.QuadIndexedFaceStructure that holds information for each face.
-
Constructor Summary
Constructors Constructor Description IndexedQuadraticFaceArray(long cPtr, boolean cMemoryOwn)IndexedQuadraticFaceArray(QuadraticShellCPtr quadric)Construct new indexed face array.IndexedQuadraticFaceArray(QuadraticShellCPtr quadric, SWIGTYPE_p_std__vectorT_rw__geometry__IndexedQuadraticFaceArray__IndexedFace_t faces, long first, long last)Construct new indexed face array.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()static longgetCPtr(IndexedQuadraticFaceArray obj)QuadraticFaceCPtrgetFace(long idx)constvoidgetFace(long idx, QuadraticFace dst)&) constlonggetGlobalIndex(long idx)Get the original face index.IndexedQuadraticFaceArray.QuadIndexedFacegetIndexedFace(long idx)Get the indexed face.voidgetIndexedFace(long idx, IndexedQuadraticFaceArray.QuadIndexedFace dst)Get the indexed face.IndexedQuadraticFaceArraygetSubRange(long first, long last)Take out a subrange of faces.booleanisConvex()longsize()voidsortAxis(int axis, Transform3D t3d)Sort the faces according to their extent in the direction along axis.
-
-
-
Constructor Detail
-
IndexedQuadraticFaceArray
public IndexedQuadraticFaceArray(long cPtr, boolean cMemoryOwn)
-
IndexedQuadraticFaceArray
public IndexedQuadraticFaceArray(QuadraticShellCPtr quadric)
Construct new indexed face array.- Parameters:
quadric- [in] the underlying Shell.
-
IndexedQuadraticFaceArray
public IndexedQuadraticFaceArray(QuadraticShellCPtr quadric, SWIGTYPE_p_std__vectorT_rw__geometry__IndexedQuadraticFaceArray__IndexedFace_t faces, long first, long last)
Construct new indexed face array.- Parameters:
quadric- [in] the underlying Shell.faces- [in] the faces to include in the proxy.first- [in] skip the first faces.last- [in] last index of faces to include.
-
-
Method Detail
-
getCPtr
public static long getCPtr(IndexedQuadraticFaceArray obj)
-
delete
public void delete()
-
isConvex
public boolean isConvex()
-
size
public long size()
-
getFace
public QuadraticFaceCPtr getFace(long idx)
const
-
getFace
public void getFace(long idx, QuadraticFace dst)&) const
-
getIndexedFace
public IndexedQuadraticFaceArray.QuadIndexedFace getIndexedFace(long idx)
Get the indexed face.- Parameters:
idx- [in] index of indexed face.- Returns:
- the indexed face.
-
getIndexedFace
public void getIndexedFace(long idx, IndexedQuadraticFaceArray.QuadIndexedFace dst)Get the indexed face.- Parameters:
idx- [in] index of indexed face.dst- [out] existing object to copy data into.
-
sortAxis
public void sortAxis(int axis, Transform3D t3d)Sort the faces according to their extent in the direction along axis.- Parameters:
axis- [in] axis to sort.t3d- [in] transform giving the position and axis directions.
-
getSubRange
public IndexedQuadraticFaceArray getSubRange(long first, long last)
Take out a subrange of faces.- Parameters:
first- [in] first index.last- [in] last index.- Returns:
- a new indexed face array.
-
getGlobalIndex
public long getGlobalIndex(long idx)
Get the original face index.- Parameters:
idx- [in] the indexed face index.- Returns:
- the original index.
-
-