Class for creating convex meshes from a set of vertices and indices.
More...
#include <ConvexBuilder.h>
Class for creating convex meshes from a set of vertices and indices.
First the method build() is called. If this was successful (return > 0) the created ConvexShapes will be available in a vector (getConvexShapes())
Parameters such as: setMaxVertices(), setDepth() etc should be set BEFORE calling build()
- Deprecated:
- Use agxCollide::ConvexBuilder instead
Definition at line 43 of file ConvexBuilder.h.
| agxCollide::deprecated::ConvexBuilder::ConvexBuilder |
( |
| ) |
|
| virtual agxCollide::deprecated::ConvexBuilder::~ConvexBuilder |
( |
| ) |
|
|
protectedvirtual |
| void agx::Referenced::allocateObserverVector |
( |
| ) |
const |
|
protectedinherited |
template<typename T >
| T* agx::Referenced::as |
( |
| ) |
|
|
inherited |
template<typename T >
| const T* agx::Referenced::as |
( |
| ) |
const |
|
inherited |
template<typename T >
| T* agx::Referenced::asSafe |
( |
| ) |
|
|
inherited |
template<typename T >
| const T* agx::Referenced::asSafe |
( |
| ) |
const |
|
inherited |
Constructs a number of Convex shapes from a triangle list.
Constructs a number of Convex shapes from the triangles read with the MeshReader.
The reader MUST be successfully initialized with data before this call.
- Returns
- number of created Convex meshes, 0 if error occurs.
| size_t agxCollide::deprecated::ConvexBuilder::buildConvexShapes |
( |
agxCollide::deprecated::ConvexBuilderImplementation * |
impl | ) |
|
|
protected |
| void agx::Referenced::deleteUsingDeleteHandler |
( |
| ) |
const |
|
protectedinherited |
| unsigned int agxCollide::deprecated::ConvexBuilder::getConcavityPercent |
( |
| ) |
const |
|
inline |
| const ConvexRefVector& agxCollide::deprecated::ConvexBuilder::getConvexShapes |
( |
| ) |
const |
|
inline |
| unsigned int agxCollide::deprecated::ConvexBuilder::getDepth |
( |
| ) |
const |
|
inline |
| unsigned int agxCollide::deprecated::ConvexBuilder::getMaxVertices |
( |
| ) |
const |
|
inline |
| size_t agxCollide::deprecated::ConvexBuilder::getNumShapes |
( |
| ) |
const |
|
inline |
| int agx::Referenced::getReferenceCount |
( |
| ) |
const |
|
inherited |
- Returns
- the number pointers currently referencing this object.
| double agxCollide::deprecated::ConvexBuilder::getSkinWidth |
( |
| ) |
const |
|
inline |
| unsigned int agxCollide::deprecated::ConvexBuilder::getVolumePercent |
( |
| ) |
const |
|
inline |
template<typename T >
| bool agx::Referenced::is |
( |
| ) |
const |
|
inherited |
| void agx::Referenced::reference |
( |
void * |
ptr = nullptr | ) |
const |
|
inherited |
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
Referenced by agxData::Val< UInt >::Val().
| void agxCollide::deprecated::ConvexBuilder::setConcavityPercent |
( |
unsigned int |
concPercent = 5 | ) |
|
|
inline |
Option: Set the concavity threshold percentage. 0=20 is reasonable.
Definition at line 88 of file ConvexBuilder.h.
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
| void agxCollide::deprecated::ConvexBuilder::setDepth |
( |
unsigned int |
depth = 5 | ) |
|
|
inline |
Option: Set the depth to split, a maximum of 10, generally not over 7.
Definition at line 84 of file ConvexBuilder.h.
| void agxCollide::deprecated::ConvexBuilder::setMaxVertices |
( |
unsigned int |
n = 32 | ) |
|
|
inline |
Option: Set maximum number of vertices in the output hull. Recommended 32 or less.
Definition at line 78 of file ConvexBuilder.h.
| void agxCollide::deprecated::ConvexBuilder::setSkinWidth |
( |
double |
swidth = 0.0 | ) |
|
|
inline |
Option: Set the skin width to apply to the output hulls.
Definition at line 96 of file ConvexBuilder.h.
| void agxCollide::deprecated::ConvexBuilder::setVolumePercent |
( |
unsigned int |
volumePercent = 5 | ) |
|
|
inline |
Option: Set the percentage volume conservation threshold to collapse hulls. 0-30 is reasonable.
Definition at line 92 of file ConvexBuilder.h.
| void agx::Referenced::unreference |
( |
void * |
ptr = nullptr | ) |
const |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
| void agx::Referenced::unreference_nodelete |
( |
| ) |
const |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
template<typename T >
| static bool agx::Referenced::ValidateCast |
( |
const Referenced * |
object | ) |
|
|
staticinherited |
| Mutex agx::Referenced::m_mutex |
|
mutableprotectedinherited |
|
|
mutableprotectedinherited |
| AtomicValue agx::Referenced::m_refCount |
|
mutableprotectedinherited |
The documentation for this class was generated from the following file: