APIdia Launch Partner
Top Fields Constructors Methods
com.badlogic.gdx.physics.bullet.collision

public Class btBvhTriangleMeshShape

extends btTriangleMeshShape
Class Inheritance
Known Direct Subclasses
com.badlogic.gdx.physics.bullet.collision.btMultimaterialTriangleMeshShape
Imports
com.badlogic.gdx.physics.bullet.linearmath.*, com.badlogic.gdx.math.Vector3, com.badlogic.gdx.graphics.g3d.model.MeshPart, com.badlogic.gdx.utils.Array

Field Summary

Modifier and TypeField and Description
protected static final Array<btBvhTriangleMeshShape>
private btStridingMeshInterface
private long

Constructor Summary

AccessConstructor and Description
protected
btBvhTriangleMeshShape(final String className, long cPtr, boolean cMemoryOwn)

public
btBvhTriangleMeshShape(long cPtr, boolean cMemoryOwn)

Construct a new btBvhTriangleMeshShape, normally you should not need this constructor it's intended for low-level usage.

public <T extends MeshPart>
btBvhTriangleMeshShape(final Array<T> meshParts)

public <T extends MeshPart>
btBvhTriangleMeshShape(final Array<T> meshParts, boolean useQuantizedAabbCompression)

public <T extends MeshPart>
btBvhTriangleMeshShape(final Array<T> meshParts, boolean useQuantizedAabbCompression, boolean buildBvh)

public <T extends MeshPart>
btBvhTriangleMeshShape(final Array<T> meshParts, boolean useQuantizedAabbCompression, Vector3 bvhAabbMin, Vector3 bvhAabbMax)

public <T extends MeshPart>
btBvhTriangleMeshShape(final Array<T> meshParts, boolean useQuantizedAabbCompression, Vector3 bvhAabbMin, Vector3 bvhAabbMax, boolean buildBvh)

public
btBvhTriangleMeshShape(btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression)

public
btBvhTriangleMeshShape(btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression, boolean buildBvh)

public
btBvhTriangleMeshShape(btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression, Vector3 bvhAabbMin, Vector3 bvhAabbMax, boolean buildBvh)

public
btBvhTriangleMeshShape(btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression, Vector3 bvhAabbMin, Vector3 bvhAabbMax)

private
btBvhTriangleMeshShape(int obtained, btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression)

private
btBvhTriangleMeshShape(int obtained, btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression, boolean buildBvh)

private
btBvhTriangleMeshShape(int obtained, btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression, Vector3 bvhAabbMin, Vector3 bvhAabbMax, boolean buildBvh)

private
btBvhTriangleMeshShape(int obtained, btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression, Vector3 bvhAabbMin, Vector3 bvhAabbMax)

private
btBvhTriangleMeshShape(boolean dummy, btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression, boolean buildBvh)

private
btBvhTriangleMeshShape(boolean dummy, btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression)

private
btBvhTriangleMeshShape(boolean dummy, btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression, Vector3 bvhAabbMin, Vector3 bvhAabbMax, boolean buildBvh)

private
btBvhTriangleMeshShape(boolean dummy, btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression, Vector3 bvhAabbMin, Vector3 bvhAabbMax)

Method Summary

Modifier and TypeMethod and Description
public void
protected synchronized void
delete()

Overrides com.badlogic.gdx.physics.bullet.collision.btTriangleMeshShape.delete.

Deletes the bullet object this class encapsulates.

public void
dispose()

Overrides com.badlogic.gdx.physics.bullet.BulletBase.dispose.

Implements com.badlogic.gdx.utils.Disposable.dispose.

Releases all resources of this object.

protected void
finalize()

Overrides com.badlogic.gdx.physics.bullet.collision.btTriangleMeshShape.finalize.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

public static long
protected static <T extends MeshPart> btBvhTriangleMeshShape
getInstance(final Array<T> meshParts)

public btStridingMeshInterface
public btOptimizedBvh
public boolean
public btTriangleInfoMap
public static <T extends MeshPart> btBvhTriangleMeshShape
obtain(final Array<T> meshParts)

Obtain an instance of btBvhTriangleMeshShape, made up of the specified MeshPart instances.

public void
public void
public void
public void
public long
public long
public long
public long
public void
partialRefitTree(Vector3 aabbMin, Vector3 aabbMax)

public void
performConvexcast(btTriangleCallback callback, Vector3 boxSource, Vector3 boxTarget, Vector3 boxMin, Vector3 boxMax)

public void
performRaycast(btTriangleCallback callback, Vector3 raySource, Vector3 rayTarget)

public void
refitTree(Vector3 aabbMin, Vector3 aabbMax)

protected void
public void
public void
public void
public void
public void
public boolean
Inherited from com.badlogic.gdx.physics.bullet.collision.btTriangleMeshShape:
getCPtrgetLocalAabbMaxgetLocalAabbMingetMeshInterfaceConstlocalGetSupportingVertexlocalGetSupportingVertexWithoutMarginrecalcLocalAabb

Field Detail

instancesback to summary
protected static final Array<btBvhTriangleMeshShape> instances
meshInterfaceback to summary
private btStridingMeshInterface meshInterface
swigCPtrback to summary
private long swigCPtr

Hides com.badlogic.gdx.physics.bullet.collision.btTriangleMeshShape.swigCPtr.

Constructor Detail

btBvhTriangleMeshShapeback to summary
protected btBvhTriangleMeshShape(final String className, long cPtr, boolean cMemoryOwn)
btBvhTriangleMeshShapeback to summary
public btBvhTriangleMeshShape(long cPtr, boolean cMemoryOwn)

Construct a new btBvhTriangleMeshShape, normally you should not need this constructor it's intended for low-level usage.

btBvhTriangleMeshShapeback to summary
public <T extends MeshPart> btBvhTriangleMeshShape(final Array<T> meshParts)
btBvhTriangleMeshShapeback to summary
public <T extends MeshPart> btBvhTriangleMeshShape(final Array<T> meshParts, boolean useQuantizedAabbCompression)
btBvhTriangleMeshShapeback to summary
public <T extends MeshPart> btBvhTriangleMeshShape(final Array<T> meshParts, boolean useQuantizedAabbCompression, boolean buildBvh)
btBvhTriangleMeshShapeback to summary
public <T extends MeshPart> btBvhTriangleMeshShape(final Array<T> meshParts, boolean useQuantizedAabbCompression, Vector3 bvhAabbMin, Vector3 bvhAabbMax)
btBvhTriangleMeshShapeback to summary
public <T extends MeshPart> btBvhTriangleMeshShape(final Array<T> meshParts, boolean useQuantizedAabbCompression, Vector3 bvhAabbMin, Vector3 bvhAabbMax, boolean buildBvh)
btBvhTriangleMeshShapeback to summary
public btBvhTriangleMeshShape(btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression)
btBvhTriangleMeshShapeback to summary
public btBvhTriangleMeshShape(btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression, boolean buildBvh)
btBvhTriangleMeshShapeback to summary
public btBvhTriangleMeshShape(btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression, Vector3 bvhAabbMin, Vector3 bvhAabbMax, boolean buildBvh)
btBvhTriangleMeshShapeback to summary
public btBvhTriangleMeshShape(btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression, Vector3 bvhAabbMin, Vector3 bvhAabbMax)
btBvhTriangleMeshShapeback to summary
private btBvhTriangleMeshShape(int obtained, btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression)
btBvhTriangleMeshShapeback to summary
private btBvhTriangleMeshShape(int obtained, btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression, boolean buildBvh)
btBvhTriangleMeshShapeback to summary
private btBvhTriangleMeshShape(int obtained, btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression, Vector3 bvhAabbMin, Vector3 bvhAabbMax, boolean buildBvh)
btBvhTriangleMeshShapeback to summary
private btBvhTriangleMeshShape(int obtained, btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression, Vector3 bvhAabbMin, Vector3 bvhAabbMax)
btBvhTriangleMeshShapeback to summary
private btBvhTriangleMeshShape(boolean dummy, btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression, boolean buildBvh)
btBvhTriangleMeshShapeback to summary
private btBvhTriangleMeshShape(boolean dummy, btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression)
btBvhTriangleMeshShapeback to summary
private btBvhTriangleMeshShape(boolean dummy, btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression, Vector3 bvhAabbMin, Vector3 bvhAabbMax, boolean buildBvh)
btBvhTriangleMeshShapeback to summary
private btBvhTriangleMeshShape(boolean dummy, btStridingMeshInterface meshInterface, boolean useQuantizedAabbCompression, Vector3 bvhAabbMin, Vector3 bvhAabbMax)

Method Detail

buildOptimizedBvhback to summary
public void buildOptimizedBvh()
deleteback to summary
protected synchronized void delete()

Overrides com.badlogic.gdx.physics.bullet.collision.btTriangleMeshShape.delete.

Doc from com.badlogic.gdx.physics.bullet.BulletBase.delete.

Deletes the bullet object this class encapsulates. Do not call directly, instead use the dispose() method.

Annotations
@Override
disposeback to summary
public void dispose()

Overrides com.badlogic.gdx.physics.bullet.BulletBase.dispose.

Implements com.badlogic.gdx.utils.Disposable.dispose.

Doc from com.badlogic.gdx.utils.Disposable.dispose.

Releases all resources of this object.

finalizeback to summary
protected void finalize() throws Throwable

Overrides com.badlogic.gdx.physics.bullet.collision.btTriangleMeshShape.finalize.

Doc from java.lang.Object.finalize.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. A subclass overrides the finalize method to dispose of system resources or to perform other cleanup.

When running in a Java virtual machine in which finalization has been disabled or removed, the garbage collector will never call finalize(). In a Java virtual machine in which finalization is enabled, the garbage collector might call finalize only after an indefinite delay.

The general contract of finalize is that it is invoked if and when the Java virtual machine has determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, except as a result of an action taken by the finalization of some other object or class which is ready to be finalized. The finalize method may take any action, including making this object available again to other threads; the usual purpose of finalize, however, is to perform cleanup actions before the object is irrevocably discarded. For example, the finalize method for an object that represents an input/output connection might perform explicit I/O transactions to break the connection before the object is permanently discarded.

The finalize method of class Object performs no special action; it simply returns normally. Subclasses of Object may override this definition.

The Java programming language does not guarantee which thread will invoke the finalize method for any given object. It is guaranteed, however, that the thread that invokes finalize will not be holding any user-visible synchronization locks when finalize is invoked. If an uncaught exception is thrown by the finalize method, the exception is ignored and finalization of that object terminates.

After the finalize method has been invoked for an object, no further action is taken until the Java virtual machine has again determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, including possible actions by other objects or classes which are ready to be finalized, at which point the object may be discarded.

The finalize method is never invoked more than once by a Java virtual machine for any given object.

Any exception thrown by the finalize method causes the finalization of this object to be halted, but is otherwise ignored.

Annotations
@Override
Exceptions
Throwable:
the Exception raised by this method
getCPtrback to summary
public static long getCPtr(btBvhTriangleMeshShape obj)
getInstanceback to summary
protected static <T extends MeshPart> btBvhTriangleMeshShape getInstance(final Array<T> meshParts)
getMeshInterfaceback to summary
public btStridingMeshInterface getMeshInterface()

Overrides com.badlogic.gdx.physics.bullet.collision.btTriangleMeshShape.getMeshInterface.

Returns:btStridingMeshInterface

The btStridingMeshInterface this shape encapsulates.

getOptimizedBvhback to summary
public btOptimizedBvh getOptimizedBvh()
getOwnsBvhback to summary
public boolean getOwnsBvh()
getTriangleInfoMapback to summary
public btTriangleInfoMap getTriangleInfoMap()
obtainback to summary
public static <T extends MeshPart> btBvhTriangleMeshShape obtain(final Array<T> meshParts)

Obtain an instance of btBvhTriangleMeshShape, made up of the specified MeshPart instances. Where possible previously obtained objects are reused. You must call release(), when you no longer need the shape.

operatorDeleteback to summary
public void operatorDelete(long ptr)

Overrides com.badlogic.gdx.physics.bullet.collision.btTriangleMeshShape.operatorDelete.

operatorDeleteback to summary
public void operatorDelete(long arg0, long arg1)

Overrides com.badlogic.gdx.physics.bullet.collision.btTriangleMeshShape.operatorDelete.

operatorDeleteArrayback to summary
public void operatorDeleteArray(long ptr)

Overrides com.badlogic.gdx.physics.bullet.collision.btTriangleMeshShape.operatorDeleteArray.

operatorDeleteArrayback to summary
public void operatorDeleteArray(long arg0, long arg1)

Overrides com.badlogic.gdx.physics.bullet.collision.btTriangleMeshShape.operatorDeleteArray.

operatorNewback to summary
public long operatorNew(long sizeInBytes)

Overrides com.badlogic.gdx.physics.bullet.collision.btTriangleMeshShape.operatorNew.

operatorNewback to summary
public long operatorNew(long arg0, long ptr)

Overrides com.badlogic.gdx.physics.bullet.collision.btTriangleMeshShape.operatorNew.

operatorNewArrayback to summary
public long operatorNewArray(long sizeInBytes)

Overrides com.badlogic.gdx.physics.bullet.collision.btTriangleMeshShape.operatorNewArray.

operatorNewArrayback to summary
public long operatorNewArray(long arg0, long ptr)

Overrides com.badlogic.gdx.physics.bullet.collision.btTriangleMeshShape.operatorNewArray.

partialRefitTreeback to summary
public void partialRefitTree(Vector3 aabbMin, Vector3 aabbMax)
performConvexcastback to summary
public void performConvexcast(btTriangleCallback callback, Vector3 boxSource, Vector3 boxTarget, Vector3 boxMin, Vector3 boxMax)
performRaycastback to summary
public void performRaycast(btTriangleCallback callback, Vector3 raySource, Vector3 rayTarget)
refitTreeback to summary
public void refitTree(Vector3 aabbMin, Vector3 aabbMax)
resetback to summary
protected void reset(long cPtr, boolean cMemoryOwn)

Overrides com.badlogic.gdx.physics.bullet.collision.btTriangleMeshShape.reset.

Annotations
@Override
serializeSingleBvhback to summary
public void serializeSingleBvh(btSerializer serializer)
serializeSingleTriangleInfoMapback to summary
public void serializeSingleTriangleInfoMap(btSerializer serializer)
setOptimizedBvhback to summary
public void setOptimizedBvh(btOptimizedBvh bvh, Vector3 localScaling)
setOptimizedBvhback to summary
public void setOptimizedBvh(btOptimizedBvh bvh)
setTriangleInfoMapback to summary
public void setTriangleInfoMap(btTriangleInfoMap triangleInfoMap)
usesQuantizedAabbCompressionback to summary
public boolean usesQuantizedAabbCompression()