Package org.robwork.sdurw_geometry
Class PlainQuadraticShell
- java.lang.Object
-
- org.robwork.sdurw_geometry.GeometryData
-
- org.robwork.sdurw_geometry.Shell
-
- org.robwork.sdurw_geometry.QuadraticShell
-
- org.robwork.sdurw_geometry.PlainQuadraticShell
-
public class PlainQuadraticShell extends QuadraticShell
A collection of concrete Quadratic surface patches, that together form a shell.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.robwork.sdurw_geometry.GeometryData
GeometryData.GeometryType
-
-
Constructor Summary
Constructors Constructor Description PlainQuadraticShell()
Constructor.PlainQuadraticShell(long cPtr, boolean cMemoryOwn)
PlainQuadraticShell(PlainQuadraticShell shell)
Copy constructor.PlainQuadraticShell(QuadraticShell shell)
Copy constructor.PlainQuadraticShell(SWIGTYPE_p_std__vectorT_rw__core__PtrT_rw__geometry__QuadraticFace_t_t faces)
Construct shell from a collection of Quadratic faces.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(PlainQuadraticShell shell)
Add faces from another shell.void
add(QuadraticFacePtr face)
Add Quadratic face.void
add(QuadraticShell shell)
Add faces from another shell.void
clear()
Remove all faces from the shell.PlainQuadraticShellPtr
clone()
Make a copy of the shell.void
delete()
static long
getCPtr(PlainQuadraticShell obj)
void
getFace(long idx, GenericFace face)
, GenericFace&) constvoid
getFace(long idx, QuadraticFace dst)
, QuadraticFace&) constboolean
isConvex()
test if this geometry data is convexlong
size()
Get the number of surface patches in this shell.-
Methods inherited from class org.robwork.sdurw_geometry.QuadraticShell
getCPtr, getType, setMeshResolution
-
Methods inherited from class org.robwork.sdurw_geometry.Shell
extremums, getCPtr, getFace, getTriMesh, getTriMesh, obb
-
Methods inherited from class org.robwork.sdurw_geometry.GeometryData
getCPtr, toString
-
-
-
-
Constructor Detail
-
PlainQuadraticShell
public PlainQuadraticShell(long cPtr, boolean cMemoryOwn)
-
PlainQuadraticShell
public PlainQuadraticShell()
Constructor.
-
PlainQuadraticShell
public PlainQuadraticShell(SWIGTYPE_p_std__vectorT_rw__core__PtrT_rw__geometry__QuadraticFace_t_t faces)
Construct shell from a collection of Quadratic faces.- Parameters:
faces
- [in] collection of Quadratic faces.
-
PlainQuadraticShell
public PlainQuadraticShell(PlainQuadraticShell shell)
Copy constructor.- Parameters:
shell
- [in] other shell to copy.
-
PlainQuadraticShell
public PlainQuadraticShell(QuadraticShell shell)
Copy constructor.- Parameters:
shell
- [in] other shell to copy.
-
-
Method Detail
-
getCPtr
public static long getCPtr(PlainQuadraticShell obj)
-
delete
public void delete()
- Overrides:
delete
in classQuadraticShell
-
isConvex
public boolean isConvex()
Description copied from class:GeometryData
test if this geometry data is convex- Overrides:
isConvex
in classQuadraticShell
- Returns:
- true if convex
-
size
public long size()
Description copied from class:Shell
Get the number of surface patches in this shell.- Overrides:
size
in classQuadraticShell
- Returns:
- the number of surface patches.
-
getFace
public void getFace(long idx, QuadraticFace dst)
, QuadraticFace&) const- Overrides:
getFace
in classQuadraticShell
- Parameters:
idx
- [in] index of the patch.dst
- [out] an existing face to write data to.
-
getFace
public void getFace(long idx, GenericFace face)
, GenericFace&) const
-
add
public void add(QuadraticFacePtr face)
Add Quadratic face.- Parameters:
face
- [in] quadratic face to add.
-
add
public void add(PlainQuadraticShell shell)
Add faces from another shell.- Parameters:
shell
- [in] other shell.
-
add
public void add(QuadraticShell shell)
Add faces from another shell.- Parameters:
shell
- [in] other shell.
-
clear
public void clear()
Remove all faces from the shell.
-
clone
public PlainQuadraticShellPtr clone()
Make a copy of the shell.- Returns:
- a new copy.
-
-