@Properties(inherit=BulletSoftBody.class) public class btSoftBodyHelpers extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
btSoftBodyHelpers()
Default native constructor.
|
btSoftBodyHelpers(long size)
Native array allocator.
|
btSoftBodyHelpers(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
static float |
CalculateUV(int resx,
int resy,
int ix,
int iy,
int id) |
static btSoftBody |
CreateEllipsoid(btSoftBodyWorldInfo worldInfo,
btVector3 center,
btVector3 radius,
int res) |
static btSoftBody |
CreateFromConvexHull(btSoftBodyWorldInfo worldInfo,
btVector3 vertices,
int nvertices) |
static btSoftBody |
CreateFromConvexHull(btSoftBodyWorldInfo worldInfo,
btVector3 vertices,
int nvertices,
boolean randomizeConstraints) |
static btSoftBody |
CreateFromTetGenData(btSoftBodyWorldInfo worldInfo,
BytePointer ele,
BytePointer face,
BytePointer node,
boolean bfacelinks,
boolean btetralinks,
boolean bfacesfromtetras) |
static btSoftBody |
CreateFromTetGenData(btSoftBodyWorldInfo worldInfo,
String ele,
String face,
String node,
boolean bfacelinks,
boolean btetralinks,
boolean bfacesfromtetras) |
static btSoftBody |
CreateFromTriMesh(btSoftBodyWorldInfo worldInfo,
double[] vertices,
int[] triangles,
int ntriangles) |
static btSoftBody |
CreateFromTriMesh(btSoftBodyWorldInfo worldInfo,
double[] vertices,
int[] triangles,
int ntriangles,
boolean randomizeConstraints) |
static btSoftBody |
CreateFromTriMesh(btSoftBodyWorldInfo worldInfo,
DoubleBuffer vertices,
IntBuffer triangles,
int ntriangles) |
static btSoftBody |
CreateFromTriMesh(btSoftBodyWorldInfo worldInfo,
DoubleBuffer vertices,
IntBuffer triangles,
int ntriangles,
boolean randomizeConstraints) |
static btSoftBody |
CreateFromTriMesh(btSoftBodyWorldInfo worldInfo,
DoublePointer vertices,
IntPointer triangles,
int ntriangles) |
static btSoftBody |
CreateFromTriMesh(btSoftBodyWorldInfo worldInfo,
DoublePointer vertices,
IntPointer triangles,
int ntriangles,
boolean randomizeConstraints) |
static btSoftBody |
CreateFromVtkFile(btSoftBodyWorldInfo worldInfo,
BytePointer vtk_file) |
static btSoftBody |
CreateFromVtkFile(btSoftBodyWorldInfo worldInfo,
String vtk_file) |
static btSoftBody |
CreatePatch(btSoftBodyWorldInfo worldInfo,
btVector3 corner00,
btVector3 corner10,
btVector3 corner01,
btVector3 corner11,
int resx,
int resy,
int fixeds,
boolean gendiags) |
static btSoftBody |
CreatePatch(btSoftBodyWorldInfo worldInfo,
btVector3 corner00,
btVector3 corner10,
btVector3 corner01,
btVector3 corner11,
int resx,
int resy,
int fixeds,
boolean gendiags,
double perturbation) |
static btSoftBody |
CreatePatchUV(btSoftBodyWorldInfo worldInfo,
btVector3 corner00,
btVector3 corner10,
btVector3 corner01,
btVector3 corner11,
int resx,
int resy,
int fixeds,
boolean gendiags) |
static btSoftBody |
CreatePatchUV(btSoftBodyWorldInfo worldInfo,
btVector3 corner00,
btVector3 corner10,
btVector3 corner01,
btVector3 corner11,
int resx,
int resy,
int fixeds,
boolean gendiags,
float[] tex_coords) |
static btSoftBody |
CreatePatchUV(btSoftBodyWorldInfo worldInfo,
btVector3 corner00,
btVector3 corner10,
btVector3 corner01,
btVector3 corner11,
int resx,
int resy,
int fixeds,
boolean gendiags,
FloatBuffer tex_coords) |
static btSoftBody |
CreatePatchUV(btSoftBodyWorldInfo worldInfo,
btVector3 corner00,
btVector3 corner10,
btVector3 corner01,
btVector3 corner11,
int resx,
int resy,
int fixeds,
boolean gendiags,
FloatPointer tex_coords) |
static btSoftBody |
CreateRope(btSoftBodyWorldInfo worldInfo,
btVector3 from,
btVector3 to,
int res,
int fixeds) |
static void |
Draw(btSoftBody psb,
btIDebugDraw idraw) |
static void |
Draw(btSoftBody psb,
btIDebugDraw idraw,
int drawflags) |
static void |
DrawClusterTree(btSoftBody psb,
btIDebugDraw idraw) |
static void |
DrawClusterTree(btSoftBody psb,
btIDebugDraw idraw,
int mindepth,
int maxdepth) |
static void |
DrawFaceTree(btSoftBody psb,
btIDebugDraw idraw) |
static void |
DrawFaceTree(btSoftBody psb,
btIDebugDraw idraw,
int mindepth,
int maxdepth) |
static void |
DrawFrame(btSoftBody psb,
btIDebugDraw idraw) |
static void |
DrawInfos(btSoftBody psb,
btIDebugDraw idraw,
boolean masses,
boolean areas,
boolean stress) |
static void |
DrawNodeTree(btSoftBody psb,
btIDebugDraw idraw) |
static void |
DrawNodeTree(btSoftBody psb,
btIDebugDraw idraw,
int mindepth,
int maxdepth) |
static void |
duplicateFaces(BytePointer filename,
btSoftBody psb) |
static void |
duplicateFaces(String filename,
btSoftBody psb) |
static void |
extrapolateBarycentricWeights(btSoftBody psb) |
static void |
generateBoundaryFaces(btSoftBody psb) |
static void |
getBarycentricWeights(btVector3 a,
btVector3 b,
btVector3 c,
btVector3 d,
btVector3 p,
btVector4 bary) |
static void |
getBarycentricWeights(btVector3 a,
btVector3 b,
btVector3 c,
btVector3 p,
btVector4 bary) |
btSoftBodyHelpers |
getPointer(long i) |
static void |
interpolateBarycentricWeights(btSoftBody psb) |
btSoftBodyHelpers |
position(long position) |
static void |
ReoptimizeLinkOrder(btSoftBody psb)
Sort the list of links to move link calculations that are dependent upon earlier
ones as far as possible away from the calculation of those values
This tends to make adjacent loop iterations not dependent upon one another,
so out-of-order processors can execute instructions from multiple iterations at once
|
static void |
writeObj(BytePointer file,
btSoftBody psb) |
static void |
writeObj(String file,
btSoftBody psb) |
static void |
writeState(BytePointer file,
btSoftBody psb) |
static void |
writeState(String file,
btSoftBody psb) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public btSoftBodyHelpers()
public btSoftBodyHelpers(long size)
Pointer.position(long)
.public btSoftBodyHelpers(Pointer p)
Pointer(Pointer)
.public btSoftBodyHelpers position(long position)
public btSoftBodyHelpers getPointer(long i)
getPointer
in class Pointer
public static void Draw(btSoftBody psb, btIDebugDraw idraw, int drawflags)
public static void Draw(btSoftBody psb, btIDebugDraw idraw)
public static void DrawInfos(btSoftBody psb, btIDebugDraw idraw, @Cast(value="bool") boolean masses, @Cast(value="bool") boolean areas, @Cast(value="bool") boolean stress)
public static void DrawNodeTree(btSoftBody psb, btIDebugDraw idraw, int mindepth, int maxdepth)
public static void DrawNodeTree(btSoftBody psb, btIDebugDraw idraw)
public static void DrawFaceTree(btSoftBody psb, btIDebugDraw idraw, int mindepth, int maxdepth)
public static void DrawFaceTree(btSoftBody psb, btIDebugDraw idraw)
public static void DrawClusterTree(btSoftBody psb, btIDebugDraw idraw, int mindepth, int maxdepth)
public static void DrawClusterTree(btSoftBody psb, btIDebugDraw idraw)
public static void DrawFrame(btSoftBody psb, btIDebugDraw idraw)
public static btSoftBody CreateRope(@ByRef btSoftBodyWorldInfo worldInfo, @Const @ByRef btVector3 from, @Const @ByRef btVector3 to, int res, int fixeds)
public static btSoftBody CreatePatch(@ByRef btSoftBodyWorldInfo worldInfo, @Const @ByRef btVector3 corner00, @Const @ByRef btVector3 corner10, @Const @ByRef btVector3 corner01, @Const @ByRef btVector3 corner11, int resx, int resy, int fixeds, @Cast(value="bool") boolean gendiags, @Cast(value="btScalar") double perturbation)
public static btSoftBody CreatePatch(@ByRef btSoftBodyWorldInfo worldInfo, @Const @ByRef btVector3 corner00, @Const @ByRef btVector3 corner10, @Const @ByRef btVector3 corner01, @Const @ByRef btVector3 corner11, int resx, int resy, int fixeds, @Cast(value="bool") boolean gendiags)
public static btSoftBody CreatePatchUV(@ByRef btSoftBodyWorldInfo worldInfo, @Const @ByRef btVector3 corner00, @Const @ByRef btVector3 corner10, @Const @ByRef btVector3 corner01, @Const @ByRef btVector3 corner11, int resx, int resy, int fixeds, @Cast(value="bool") boolean gendiags, FloatPointer tex_coords)
public static btSoftBody CreatePatchUV(@ByRef btSoftBodyWorldInfo worldInfo, @Const @ByRef btVector3 corner00, @Const @ByRef btVector3 corner10, @Const @ByRef btVector3 corner01, @Const @ByRef btVector3 corner11, int resx, int resy, int fixeds, @Cast(value="bool") boolean gendiags)
public static btSoftBody CreatePatchUV(@ByRef btSoftBodyWorldInfo worldInfo, @Const @ByRef btVector3 corner00, @Const @ByRef btVector3 corner10, @Const @ByRef btVector3 corner01, @Const @ByRef btVector3 corner11, int resx, int resy, int fixeds, @Cast(value="bool") boolean gendiags, FloatBuffer tex_coords)
public static btSoftBody CreatePatchUV(@ByRef btSoftBodyWorldInfo worldInfo, @Const @ByRef btVector3 corner00, @Const @ByRef btVector3 corner10, @Const @ByRef btVector3 corner01, @Const @ByRef btVector3 corner11, int resx, int resy, int fixeds, @Cast(value="bool") boolean gendiags, float[] tex_coords)
public static float CalculateUV(int resx, int resy, int ix, int iy, int id)
public static btSoftBody CreateEllipsoid(@ByRef btSoftBodyWorldInfo worldInfo, @Const @ByRef btVector3 center, @Const @ByRef btVector3 radius, int res)
public static btSoftBody CreateFromTriMesh(@ByRef btSoftBodyWorldInfo worldInfo, @Cast(value="const btScalar*") DoublePointer vertices, @Const IntPointer triangles, int ntriangles, @Cast(value="bool") boolean randomizeConstraints)
public static btSoftBody CreateFromTriMesh(@ByRef btSoftBodyWorldInfo worldInfo, @Cast(value="const btScalar*") DoublePointer vertices, @Const IntPointer triangles, int ntriangles)
public static btSoftBody CreateFromTriMesh(@ByRef btSoftBodyWorldInfo worldInfo, @Cast(value="const btScalar*") DoubleBuffer vertices, @Const IntBuffer triangles, int ntriangles, @Cast(value="bool") boolean randomizeConstraints)
public static btSoftBody CreateFromTriMesh(@ByRef btSoftBodyWorldInfo worldInfo, @Cast(value="const btScalar*") DoubleBuffer vertices, @Const IntBuffer triangles, int ntriangles)
public static btSoftBody CreateFromTriMesh(@ByRef btSoftBodyWorldInfo worldInfo, @Cast(value="const btScalar*") double[] vertices, @Const int[] triangles, int ntriangles, @Cast(value="bool") boolean randomizeConstraints)
public static btSoftBody CreateFromTriMesh(@ByRef btSoftBodyWorldInfo worldInfo, @Cast(value="const btScalar*") double[] vertices, @Const int[] triangles, int ntriangles)
public static btSoftBody CreateFromConvexHull(@ByRef btSoftBodyWorldInfo worldInfo, @Const btVector3 vertices, int nvertices, @Cast(value="bool") boolean randomizeConstraints)
public static btSoftBody CreateFromConvexHull(@ByRef btSoftBodyWorldInfo worldInfo, @Const btVector3 vertices, int nvertices)
public static btSoftBody CreateFromTetGenData(@ByRef btSoftBodyWorldInfo worldInfo, @Cast(value="const char*") BytePointer ele, @Cast(value="const char*") BytePointer face, @Cast(value="const char*") BytePointer node, @Cast(value="bool") boolean bfacelinks, @Cast(value="bool") boolean btetralinks, @Cast(value="bool") boolean bfacesfromtetras)
public static btSoftBody CreateFromTetGenData(@ByRef btSoftBodyWorldInfo worldInfo, String ele, String face, String node, @Cast(value="bool") boolean bfacelinks, @Cast(value="bool") boolean btetralinks, @Cast(value="bool") boolean bfacesfromtetras)
public static btSoftBody CreateFromVtkFile(@ByRef btSoftBodyWorldInfo worldInfo, @Cast(value="const char*") BytePointer vtk_file)
public static btSoftBody CreateFromVtkFile(@ByRef btSoftBodyWorldInfo worldInfo, String vtk_file)
public static void writeObj(@Cast(value="const char*") BytePointer file, @Const btSoftBody psb)
public static void writeObj(String file, @Const btSoftBody psb)
public static void writeState(@Cast(value="const char*") BytePointer file, @Const btSoftBody psb)
public static void writeState(String file, @Const btSoftBody psb)
public static void getBarycentricWeights(@Const @ByRef btVector3 a, @Const @ByRef btVector3 b, @Const @ByRef btVector3 c, @Const @ByRef btVector3 d, @Const @ByRef btVector3 p, @ByRef btVector4 bary)
public static void getBarycentricWeights(@Const @ByRef btVector3 a, @Const @ByRef btVector3 b, @Const @ByRef btVector3 c, @Const @ByRef btVector3 p, @ByRef btVector4 bary)
public static void interpolateBarycentricWeights(btSoftBody psb)
public static void extrapolateBarycentricWeights(btSoftBody psb)
public static void generateBoundaryFaces(btSoftBody psb)
public static void duplicateFaces(@Cast(value="const char*") BytePointer filename, @Const btSoftBody psb)
public static void duplicateFaces(String filename, @Const btSoftBody psb)
public static void ReoptimizeLinkOrder(btSoftBody psb)
Copyright © 2024. All rights reserved.