Searched refs:mesh (Results 1 - 25 of 74) sorted by relevance

123

/external/skia/third_party/glu/libtess/
H A Dtessmono.h47 * loop of half-edges (see mesh.h) oriented CCW. "Monotone" in this
54 * __gl_meshTessellateInterior( mesh ) tessellates each region of
55 * the mesh which is marked "inside" the polygon. Each such region
58 * __gl_meshDiscardExterior( mesh ) zaps (ie. sets to NULL) all faces
59 * which are not marked "inside" the polygon. Since further mesh operations
61 * mesh so that exterior loops are not represented in the data structure.
63 * __gl_meshSetWindingNumber( mesh, value, keepOnlyBoundary ) resets the
73 int __gl_meshTessellateInterior( GLUmesh *mesh );
74 void __gl_meshDiscardExterior( GLUmesh *mesh );
75 int __gl_meshSetWindingNumber( GLUmesh *mesh, in
[all...]
H A Drender.h45 #include "mesh.h"
47 /* __gl_renderMesh( tess, mesh ) takes a mesh and breaks it into triangle
54 void __gl_renderMesh( GLUtesselator *tess, GLUmesh *mesh );
55 void __gl_renderBoundary( GLUtesselator *tess, GLUmesh *mesh );
H A Dtessmono.c45 #include "mesh.h"
54 * loop of half-edges (see mesh.h) oriented CCW. "Monotone" in this
136 /* __gl_meshTessellateInterior( mesh ) tessellates each region of
137 * the mesh which is marked "inside" the polygon. Each such region
140 int __gl_meshTessellateInterior( GLUmesh *mesh )
145 for( f = mesh->fHead.next; f != &mesh->fHead; f = next ) {
157 /* __gl_meshDiscardExterior( mesh ) zaps (ie. sets to NULL) all faces
158 * which are not marked "inside" the polygon. Since further mesh operations
160 * mesh s
186 __gl_meshSetWindingNumber( GLUmesh *mesh, int value, GLboolean keepOnlyBoundary ) argument
[all...]
H A Dtess.c48 #include "mesh.h"
55 #define GLU_TESS_MESH 100112 /* void (*)(GLUmesh *mesh) */
67 /*ARGSUSED*/ static void GLAPIENTRY noMesh( GLUmesh *mesh ) {}
85 /* Half-edges are allocated in pairs (see mesh.c) */
146 if( tess->mesh != NULL ) {
147 __gl_meshDeleteMesh( tess->mesh );
151 tess->mesh = NULL;
357 e = __gl_meshMakeEdge( tess->mesh );
405 tess->mesh = __gl_meshNewMesh();
406 if (tess->mesh
506 GLUmesh *mesh; local
[all...]
H A Dmesh.h39 ** $Header: //depot/main/gfx/lib/glu/libtess/mesh.h#5 $
55 /* The mesh structure is similar in spirit, notation, and operations
74 * The notation used for mesh navigation:
83 * The mesh keeps global lists of all vertices, faces, and edges,
85 * The mesh stores pointers to these dummy headers (vHead, fHead, eHead).
106 * record of this in the data structure. The mesh may consist of
108 * the entire mesh by starting at a half-edge and traversing the edge
111 * The mesh does NOT support isolated vertices; a vertex is deleted along
113 * faces is deleted (see __gl_meshDelete below). For mesh operations,
115 * mesh manipulatio
[all...]
H A Dmesh.c39 ** $Header: //depot/main/gfx/lib/glu/libtess/mesh.c#6 $
45 #include "mesh.h"
115 * CS348a notes (see mesh.h). Basically it modifies the mesh so that
278 GLUhalfEdge *__gl_meshMakeEdge( GLUmesh *mesh )
293 e = MakeEdge( &mesh->eHead );
296 MakeVertex( newVertex1, e, &mesh->vHead );
297 MakeVertex( newVertex2, e->Sym, &mesh->vHead );
298 MakeFace( newFace, e, &mesh->fHead );
304 * mesh connectivit
607 GLUmesh *mesh = (GLUmesh *)memAlloc( sizeof( GLUmesh )); local
[all...]
/external/jmonkeyengine/engine/src/core/com/jme3/scene/mesh/
H A DWrappedIndexBuffer.java1 package com.jme3.scene.mesh;
12 * mesh mode such as {@link Mode#TriangleStrip} or {@link Mode#LineLoop}
16 * convoluting classes used to process mesh data from an external source.
24 public WrappedIndexBuffer(Mesh mesh){ argument
25 super(mesh.getVertexCount(), mesh.getMode());
26 this.ib = mesh.getIndexBuffer();
29 numIndices = mesh.getTriangleCount();
34 numIndices = mesh.getTriangleCount() * 2;
39 numIndices = mesh
57 convertToList(Mesh mesh) argument
[all...]
H A DIndexBuffer.java33 package com.jme3.scene.mesh;
H A DIndexIntBuffer.java33 package com.jme3.scene.mesh;
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/util/
H A DNativeMeshUtil.java36 import com.jme3.scene.mesh.IndexBuffer;
47 public static long getTriangleIndexVertexArray(Mesh mesh){ argument
48 ByteBuffer triangleIndexBase = BufferUtils.createByteBuffer(mesh.getTriangleCount() * 3 * 4);
49 ByteBuffer vertexBase = BufferUtils.createByteBuffer(mesh.getVertexCount() * 3 * 4);
50 int numVertices = mesh.getVertexCount();
52 int numTriangles = mesh.getTriangleCount();
55 IndexBuffer indices = mesh.getIndicesAsList();
56 FloatBuffer vertices = mesh.getFloatBuffer(Type.Position);
59 int verticesLength = mesh.getVertexCount() * 3;
65 int indicesLength = mesh
[all...]
H A DDebugShapeFactory.java113 Mesh mesh = new Mesh();
114 mesh = new Mesh();
117 mesh.setBuffer(Type.Position, 3, callback.getVertices());
118 mesh.getFloatBuffer(Type.Position).clear();
119 return mesh;
/external/jmonkeyengine/engine/src/core/com/jme3/scene/
H A DGeometry.java63 // models loaded with shared mesh will be automatically fixed.
67 protected Mesh mesh; field in class:Geometry
80 * the start index of this geom's mesh in the batchNode mesh
99 * Create a geometry node without any mesh data.
100 * Both the mesh and the material are null, the geometry
110 * Create a geometry node with mesh data.
115 * @param mesh The mesh data for this geometry
117 public Geometry(String name, Mesh mesh) { argument
201 setMesh(Mesh mesh) argument
[all...]
/external/jmonkeyengine/engine/src/tools/jme3tools/converters/model/
H A DModelConverter.java39 import com.jme3.scene.mesh.IndexBuffer;
65 public static void generateStrips(Mesh mesh, boolean stitch, boolean listOnly, int cacheSize, int minStripSize){ argument
72 IndexBuffer ib = mesh.getIndicesAsList();
84 VertexBuffer original = mesh.getBuffer(Type.Index);
89 ib = mesh.getIndexBuffer();
113 mesh.setMode(Mode.TriangleStrip);
115 mesh.setElementLengths(elementLengths);
116 mesh.setModeStart(modeStart);
117 mesh.setMode(Mode.Hybrid);
120 mesh
123 optimize(Mesh mesh, boolean toFixed) argument
[all...]
H A DFloatToFixed.java45 import com.jme3.scene.mesh.IndexBuffer;
60 Mesh mesh = geom.getMesh();
62 VertexBuffer positions = mesh.getBuffer(Type.Position);
63 VertexBuffer normals = mesh.getBuffer(Type.Normal);
64 VertexBuffer texcoords = mesh.getBuffer(Type.TexCoord);
65 VertexBuffer indices = mesh.getBuffer(Type.Index);
71 mesh.getVertexCount());
81 mesh.clearBuffer(Type.Position);
82 mesh.setBuffer(newPosVb);
94 mesh
115 compressIndexBuffer(Mesh mesh) argument
[all...]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/meshes/
H A DMeshContext.java11 * Class that holds information about the mesh.
16 /** The mesh stored here as a list of geometries. */
17 private List<Geometry> mesh; field in class:MeshContext
26 * This method returns the referenced mesh.
28 * @return the referenced mesh
31 return mesh;
35 * This method sets the referenced mesh.
37 * @param mesh
38 * the referenced mesh
40 public void setMesh(List<Geometry> mesh) { argument
[all...]
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/collision/shapes/
H A DGImpactCollisionShape.java41 import com.jme3.scene.mesh.IndexBuffer;
50 * Basic mesh collision shape
66 * @param mesh the Mesh to use
68 public GImpactCollisionShape(Mesh mesh) { argument
69 createCollisionMesh(mesh);
72 private void createCollisionMesh(Mesh mesh) { argument
73 triangleIndexBase = BufferUtils.createByteBuffer(mesh.getTriangleCount() * 3 * 4);
74 vertexBase = BufferUtils.createByteBuffer(mesh.getVertexCount() * 3 * 4);
75 // triangleIndexBase = ByteBuffer.allocate(mesh.getTriangleCount() * 3 * 4);
76 // vertexBase = ByteBuffer.allocate(mesh
[all...]
H A DMeshCollisionShape.java41 import com.jme3.scene.mesh.IndexBuffer;
51 * Basic mesh collision shape
65 * @param mesh the TriMesh to use
67 public MeshCollisionShape(Mesh mesh) { argument
68 createCollisionMesh(mesh);
71 private void createCollisionMesh(Mesh mesh) { argument
72 triangleIndexBase = BufferUtils.createByteBuffer(mesh.getTriangleCount() * 3 * 4);
73 vertexBase = BufferUtils.createByteBuffer(mesh.getVertexCount() * 3 * 4);
74 numVertices = mesh.getVertexCount();
76 numTriangles = mesh
[all...]
H A DHullCollisionShape.java24 public HullCollisionShape(Mesh mesh) { argument
25 this.points = getPoints(mesh);
48 Mesh mesh = (Mesh) capsule.readSavable("hullMesh", null);
49 if (mesh != null) {
50 this.points = getPoints(mesh);
86 protected float[] getPoints(Mesh mesh) { argument
87 FloatBuffer vertices = mesh.getFloatBuffer(Type.Position);
89 int components = mesh.getVertexCount() * 3;
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/collision/shapes/
H A DHullCollisionShape.java23 public HullCollisionShape(Mesh mesh) { argument
24 this.points = getPoints(mesh);
47 Mesh mesh = (Mesh) capsule.readSavable("hullMesh", null);
48 if (mesh != null) {
49 this.points = getPoints(mesh);
67 protected float[] getPoints(Mesh mesh) { argument
68 FloatBuffer vertices = mesh.getFloatBuffer(Type.Position);
70 int components = mesh.getVertexCount() * 3;
/external/jmonkeyengine/engine/src/core/com/jme3/util/
H A DTangentBinormalGenerator.java42 import com.jme3.scene.mesh.IndexBuffer;
108 public static void generate(Mesh mesh) { argument
109 generate(mesh, true);
120 Mesh mesh = geom.getMesh();
122 // Check to ensure mesh has texcoords and normals before generating
123 if (mesh.getBuffer(Type.TexCoord) != null
124 && mesh.getBuffer(Type.Normal) != null){
130 public static void generate(Mesh mesh, boolean approxTangents) { argument
139 if (mesh.getBuffer(Type.Normal) == null) {
140 throw new IllegalArgumentException("The given mesh ha
181 processTriangles(Mesh mesh, int[] index, Vector3f[] v, Vector2f[] t) argument
212 processTriangleStrip(Mesh mesh, int[] index, Vector3f[] v, Vector2f[] t) argument
260 processTriangleFan(Mesh mesh, int[] index, Vector3f[] v, Vector2f[] t) argument
390 linkVertices(Mesh mesh) argument
428 processTriangleData(Mesh mesh, VertexData[] vertices, boolean approxTangent) argument
606 genTbnLines(Mesh mesh, float scale) argument
614 genNormalLines(Mesh mesh, float scale) argument
653 genTangentLines(Mesh mesh, float scale) argument
[all...]
/external/jmonkeyengine/engine/src/core/com/jme3/animation/
H A DSkeletonControl.java25 * the transformations on the mesh
40 * Used to track when a mesh was updated. Meshes are only updated
74 private boolean isMeshAnimated(Mesh mesh) { argument
75 return mesh.getBuffer(Type.BindPosePosition) != null;
89 // is this geometry using a shared mesh?
95 // child is using shared mesh,
96 // so animate the shared mesh but ignore child
104 Mesh mesh = geom.getMesh();
105 if (isMeshAnimated(mesh)) {
106 animatedMeshes.add(mesh);
278 softwareSkinUpdate(Mesh mesh, Matrix4f[] offsetMatrices) argument
297 applySkinning(Mesh mesh, Matrix4f[] offsetMatrices) argument
399 applySkinningTangents(Mesh mesh, Matrix4f[] offsetMatrices, VertexBuffer tb) argument
[all...]
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/
H A DUVCoordinatesGenerator.java82 * This method generates UV coordinates for the given mesh.
84 * Each containing mesh with separate material.
104 Mesh mesh = geometries.get(0).getMesh();
110 inputData = BufferUtils.getFloatArray(mesh.getFloatBuffer(VertexBuffer.Type.Position));
113 FloatBuffer uvCoordinatesBuffer = BufferUtils.createFloatBuffer(mesh.getVertexCount() * textureDimension);
115 for (int i = 0; i < mesh.getVertexCount(); ++i) {
126 inputData = BufferUtils.getFloatArray(mesh.getFloatBuffer(VertexBuffer.Type.Normal));
150 inputData = UVProjectionGenerator.flatProjection(mesh, bb);
153 inputData = UVProjectionGenerator.cubeProjection(mesh, bb);
157 inputData = UVProjectionGenerator.tubeProjection(mesh, b
221 getBoundingBox(Mesh mesh) argument
260 getBoundingSphere(Mesh mesh) argument
281 getBoundingTube(Mesh mesh) argument
[all...]
/external/jmonkeyengine/engine/src/core/com/jme3/collision/bih/
H A DBIHTree.java52 import com.jme3.scene.mesh.IndexBuffer;
53 import com.jme3.scene.mesh.VirtualIndexBuffer;
54 import com.jme3.scene.mesh.WrappedIndexBuffer;
64 private Mesh mesh; field in class:BIHTree
107 public BIHTree(Mesh mesh, int maxTrisPerNode) { argument
108 this.mesh = mesh;
111 if (maxTrisPerNode < 1 || mesh == null) {
117 FloatBuffer vb = (FloatBuffer) mesh.getBuffer(Type.Position).getData();
118 IndexBuffer ib = mesh
129 BIHTree(Mesh mesh) argument
[all...]
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/util/
H A DConverter.java39 import com.jme3.scene.mesh.IndexBuffer;
46 * Objects, also some jme to jbullet mesh conversion.
226 public static IndexedMesh convert(Mesh mesh) { argument
228 jBulletIndexedMesh.triangleIndexBase = ByteBuffer.allocate(mesh.getTriangleCount() * 3 * 4);
229 jBulletIndexedMesh.vertexBase = ByteBuffer.allocate(mesh.getVertexCount() * 3 * 4);
231 IndexBuffer indices = mesh.getIndicesAsList();
233 FloatBuffer vertices = mesh.getFloatBuffer(Type.Position);
236 int verticesLength = mesh.getVertexCount() * 3;
237 jBulletIndexedMesh.numVertices = mesh.getVertexCount();
244 int indicesLength = mesh
256 convert(IndexedMesh mesh) argument
[all...]
/external/webkit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/win/
H A DDrawsGradient.cpp110 GRADIENT_TRIANGLE mesh[] = { local
117 ::GradientFill(dc, vertices, _countof(vertices), mesh, _countof(mesh), GRADIENT_FILL_TRIANGLE);

Completed in 278 milliseconds

123