/dports/audio/faust/faust-2.37.3/tools/physicalModeling/mesh2faust/vega/libraries/volumetricMesh/ |
H A D | generateSurfaceMesh.cpp | 126 ObjMesh * objMesh = new ObjMesh(); in ComputeMesh() 243 ObjMesh::Face newFace1; in ComputeMesh() 248 ObjMesh::Face newFace2; in ComputeMesh() 258 ObjMesh::Face newFace1; in ComputeMesh() 279 objMesh->setSingleMaterial(ObjMesh::Material()); in ComputeMesh() 285 ObjMesh * GenerateSurfaceMesh::ComputeMesh(const VolumetricMesh * mesh, const ObjMesh * superMesh, … in ComputeMesh() 316 ObjMesh * objMesh = new ObjMesh(); in ComputeMesh() 453 ObjMesh::Face newFace1; in ComputeMesh() 458 ObjMesh::Face newFace2; in ComputeMesh() 468 ObjMesh::Face newFace1; in ComputeMesh() [all …]
|
H A D | generateSurfaceMesh.h | 52 …static ObjMesh * ComputeMesh(const VolumetricMesh * volumetricMesh, bool triangulateOutputMesh=fal… 54 …static ObjMesh * ComputeMesh(const VolumetricMesh * volumetricMesh, const ObjMesh * superMesh, boo…
|
/dports/audio/faust/faust-2.37.3/tools/physicalModeling/mesh2faust/vega/libraries/mesher/ |
H A D | isosurfaceMesher.h | 80 ObjMesh * getMesh(bool enforceManifold = true); 86 IsosurfaceMesher(ObjMesh * detailedSurfaceMesh); 103 ObjMesh * buildCurrentSurfaceMesh(bool keepAllDelaunayVtx = false) const; 106 static bool enforceManifoldnessAndOrientNormals(ObjMesh * &objMesh); 153 …ObjMesh * computeOneMesh(ObjMesh * objMesh, int & maxNumberOfIterations, double & maxTimeSeconds, … 154 bool initializeOneMesh(ObjMesh * objMesh); 158 ObjMesh * detailedSurfaceMesh; 166 ObjMesh * splitIsosurfaceMesh; 167 std::vector<ObjMesh *> splitComponent; 179 ObjMesh * isoMesh; [all …]
|
H A D | isosurfaceMesher.cpp | 54 IsosurfaceMesher::IsosurfaceMesher(ObjMesh * d) in IsosurfaceMesher() 109 isoMesh = new ObjMesh; in setStepping() 141 ObjMesh * objMesh = splitComponent[splitComponentIndex]; in doOneStep() 149 ObjMesh * mesh = buildCurrentSurfaceMesh(); in doOneStep() 207 ObjMesh * singleMesh = splitComponent[i]; in compute() 378 ObjMesh * IsosurfaceMesher::computeOneMesh(ObjMesh * objMesh, int & maxNumberOfIterations, double &… in computeOneMesh() 608 objMesh = new ObjMesh; in enforceManifoldnessAndOrientNormals() 629 ObjMesh::Group * group = (ObjMesh::Group*)singleMesh->getGroupHandle(i); in enforceManifoldnessAndOrientNormals() 632 ObjMesh::Face * face = (ObjMesh::Face*)group->getFaceHandle(j); in enforceManifoldnessAndOrientNormals() 696 ObjMesh::Face * faceHandle = (ObjMesh::Face*) groupHandle->getFaceHandle(faceIndex); in getMesh() [all …]
|
H A D | tetMesher.cpp | 59 objMesh = new ObjMesh(*inputMesh); in compute() 908 ObjMesh * mesh = new ObjMesh; in fillHole() 925 ObjMesh::Group * group = (ObjMesh::Group*) mesh->getGroupHandle(1); in fillHole() 929 ObjMesh::Face face; in fillHole() 930 face.addVertex(ObjMesh::Vertex(v[0])); in fillHole() 940 ObjMesh::Face _face; in fillHole() 962 ObjMesh * meshToDelete = mesh; in fillHole() 971 ObjMesh::Group group_2("hole"); in fillHole() 975 ObjMesh::Face face_2; in fillHole() 1333 … group.addFace(ObjMesh::Face(ObjMesh::Vertex(edge[0]), ObjMesh::Vertex(v1), ObjMesh::Vertex(v0))); in flipSurface() [all …]
|
/dports/audio/faust/faust-2.37.3/tools/physicalModeling/mesh2faust/vega/libraries/include/ |
H A D | isosurfaceMesher.h | 80 ObjMesh * getMesh(bool enforceManifold = true); 86 IsosurfaceMesher(ObjMesh * detailedSurfaceMesh); 103 ObjMesh * buildCurrentSurfaceMesh(bool keepAllDelaunayVtx = false) const; 106 static bool enforceManifoldnessAndOrientNormals(ObjMesh * &objMesh); 153 …ObjMesh * computeOneMesh(ObjMesh * objMesh, int & maxNumberOfIterations, double & maxTimeSeconds, … 154 bool initializeOneMesh(ObjMesh * objMesh); 158 ObjMesh * detailedSurfaceMesh; 166 ObjMesh * splitIsosurfaceMesh; 167 std::vector<ObjMesh *> splitComponent; 179 ObjMesh * isoMesh; [all …]
|
H A D | objMeshBinaryLoader.h | 43 static int readFromBinaryFile(ObjMesh ** objMesh, const std::string & filename); 44 static int writeToBinaryFile(ObjMesh * objMesh, const std::string & filename); 47 static int readFromBinary(ObjMesh::Vertex ** vertex, std::ifstream * fin); 48 static int readFromBinary(ObjMesh::Face ** face, std::ifstream * fin); 49 static int readFromBinary(ObjMesh::Group ** group, std::ifstream * fin); 50 static int readFromBinary(ObjMesh::Material ** material, std::ifstream * fin); 51 static int writeToBinary(ObjMesh::Vertex * vertex, std::ofstream * fout); 52 static int writeToBinary(ObjMesh::Face * face, std::ofstream * fout); 53 static int writeToBinary(ObjMesh::Group * group, std::ofstream * fout); 54 static int writeToBinary(ObjMesh::Material * material, std::ofstream * fout);
|
H A D | objMeshOrientable.h | 48 …ObjMeshOrientable(ObjMesh * objMesh, int generateHalfEdges=1, int * numOrientationFlips = NULL, in… 108 ObjMesh * objMesh; 153 …ObjMesh::Group edgeGroup(HalfEdge & halfedge) { return *(objMesh->getGroupHandle(halfedge.groupID(… in edgeGroup() 156 ObjMesh::Face edgeFace(HalfEdge & halfedge) in edgeFace() 157 { const ObjMesh::Group * getGroupHandle = objMesh->getGroupHandle(halfedge.groupID()); in edgeFace() 161 ObjMesh::Vertex edgeStartVertex (HalfEdge & halfedge) in edgeStartVertex() 162 { const ObjMesh::Group * getGroupHandle = objMesh->getGroupHandle(halfedge.groupID()); in edgeStartVertex() 166 ObjMesh::Vertex edgeEndVertex (HalfEdge & halfedge) in edgeEndVertex() 167 { const ObjMesh::Group * getGroupHandle = objMesh->getGroupHandle(halfedge.groupID()); in edgeEndVertex() 177 …ObjMesh * GenerateOrientedMesh(); // generates oriented mesh (same mesh as the input ObjMesh, but …
|
H A D | signedDistanceFieldFromPolygonSoup.h | 50 …SignedDistanceFieldFromPolygonSoup(ObjMesh * objMesh, double expansionRatio = 1.5, bool useCubicBo… 75 ObjMesh * objMesh; 83 ObjMesh * RemoveInteriorComponents(ObjMesh * isoMesh); 86 …bool ConstructPseudoNormalComponents(ObjMesh * isoMesh, std::vector<TriangleWithCollisionInfoAndPs… 95 ObjMesh * ComputeIsosurface(DistanceFieldBase * distanceField, double sigma);
|
H A D | objMeshOffsetVoxels.h | 52 …ObjMeshOffsetVoxels(ObjMesh * objMesh, int resolution[3], int depth=0, double expansionFactor=1.2)… 53 …ObjMeshOffsetVoxels(ObjMesh * objMesh, int resolution[3], int depth, Vec3d boxbmin, Vec3d boxbmax)… 69 double ** interpolationWeights, ObjMesh ** surfaceMesh); 72 ObjMesh * surfaceOffsetMesh(); 114 ObjMesh * objMesh;
|
H A D | generateSurfaceMesh.h | 52 …static ObjMesh * ComputeMesh(const VolumetricMesh * volumetricMesh, bool triangulateOutputMesh=fal… 54 …static ObjMesh * ComputeMesh(const VolumetricMesh * volumetricMesh, const ObjMesh * superMesh, boo…
|
/dports/audio/faust/faust-2.37.3/tools/physicalModeling/mesh2faust/vega/libraries/objMesh/ |
H A D | objMeshBinaryLoader.h | 43 static int readFromBinaryFile(ObjMesh ** objMesh, const std::string & filename); 44 static int writeToBinaryFile(ObjMesh * objMesh, const std::string & filename); 47 static int readFromBinary(ObjMesh::Vertex ** vertex, std::ifstream * fin); 48 static int readFromBinary(ObjMesh::Face ** face, std::ifstream * fin); 49 static int readFromBinary(ObjMesh::Group ** group, std::ifstream * fin); 50 static int readFromBinary(ObjMesh::Material ** material, std::ifstream * fin); 51 static int writeToBinary(ObjMesh::Vertex * vertex, std::ofstream * fout); 52 static int writeToBinary(ObjMesh::Face * face, std::ofstream * fout); 53 static int writeToBinary(ObjMesh::Group * group, std::ofstream * fout); 54 static int writeToBinary(ObjMesh::Material * material, std::ofstream * fout);
|
H A D | objMeshBinaryLoader.cpp | 103 *objMesh = new ObjMesh(); in readFromBinaryFile() 111 ObjMesh::Material * material; in readFromBinaryFile() 120 ObjMesh::Group * group; in readFromBinaryFile() 221 *vertex = new ObjMesh::Vertex(position, texture, normal); in readFromBinary() 253 *face = new ObjMesh::Face(); in readFromBinary() 257 ObjMesh::Vertex * vertex; in readFromBinary() 271 writeToBinary((ObjMesh::Face*)face->getVertexHandle(i), fout); in writeToBinary() 288 *group = new ObjMesh::Group(name, materialIndex); in readFromBinary() 295 ObjMesh::Face * face; in readFromBinary() 315 writeToBinary((ObjMesh::Face*)group->getFaceHandle(i), fout); in writeToBinary() [all …]
|
H A D | objMesh.cpp | 94 ObjMesh::ObjMesh(void * binaryInputStream, streamType stream, int verbose) in ObjMesh() function in ObjMesh 150 ObjMesh::ObjMesh(const ObjMesh & objMesh_) in ObjMesh() function in ObjMesh 647 ObjMesh::Group ObjMesh::getGroup(const std::string name) const in getGroup() 741 void ObjMesh::triangulate() in triangulate() 1764 ObjMesh * output = new ObjMesh(); in splitIntoConnectedComponents() 1858 ObjMesh * output = new ObjMesh(); in clone() 1934 ObjMesh * output = new ObjMesh(); in extractGroup() 4321 void ObjMesh::appendMesh(ObjMesh * mesh) in appendMesh() 4348 ObjMesh::Group * newGroup = (ObjMesh::Group*) getGroupHandle(newGroupID); in appendMesh() 4357 ObjMesh::Vertex * vertex = (ObjMesh::Vertex*) face->getVertexHandle(k); in appendMesh() [all …]
|
H A D | objMeshOrientable.h | 48 …ObjMeshOrientable(ObjMesh * objMesh, int generateHalfEdges=1, int * numOrientationFlips = NULL, in… 108 ObjMesh * objMesh; 153 …ObjMesh::Group edgeGroup(HalfEdge & halfedge) { return *(objMesh->getGroupHandle(halfedge.groupID(… in edgeGroup() 156 ObjMesh::Face edgeFace(HalfEdge & halfedge) in edgeFace() 157 { const ObjMesh::Group * getGroupHandle = objMesh->getGroupHandle(halfedge.groupID()); in edgeFace() 161 ObjMesh::Vertex edgeStartVertex (HalfEdge & halfedge) in edgeStartVertex() 162 { const ObjMesh::Group * getGroupHandle = objMesh->getGroupHandle(halfedge.groupID()); in edgeStartVertex() 166 ObjMesh::Vertex edgeEndVertex (HalfEdge & halfedge) in edgeEndVertex() 167 { const ObjMesh::Group * getGroupHandle = objMesh->getGroupHandle(halfedge.groupID()); in edgeEndVertex() 177 …ObjMesh * GenerateOrientedMesh(); // generates oriented mesh (same mesh as the input ObjMesh, but …
|
H A D | objMeshOctree.cpp | 41 ObjMeshOctree<TriangleClass>::ObjMeshOctree(const ObjMesh * objMeshIn, int maxNumTrianglesInLeafNod… in ObjMeshOctree() 45 ObjMesh * objMesh = new ObjMesh(*objMeshIn); in ObjMeshOctree() 92 ObjMeshOctree<TriangleWithCollisionInfoAndPseudoNormals>::ObjMeshOctree(const ObjMesh * objMeshIn, … in ObjMeshOctree() 96 ObjMesh * objMesh = new ObjMesh(*objMeshIn); in ObjMeshOctree() 108 ObjMesh * pseudoNormalObjMesh = objMesh; in ObjMeshOctree() 161 if (ObjMesh::isNaN(pseudoNormals[normali][0]) || in ObjMeshOctree() 162 ObjMesh::isNaN(pseudoNormals[normali][1]) || in ObjMeshOctree() 163 ObjMesh::isNaN(pseudoNormals[normali][2])) in ObjMeshOctree() 217 template ObjMeshOctree<TriangleBasic>::ObjMeshOctree(const ObjMesh * objMesh, int maxNumTrianglesIn… 218 template ObjMeshOctree<TriangleWithCollisionInfo>::ObjMeshOctree(const ObjMesh * objMesh, int maxNu…
|
H A D | objMeshClose.cpp | 37 int ObjMeshClose::Close(ObjMesh * objMesh) in Close() 107 ObjMesh::Group * groupHandle = (ObjMesh::Group*) objMesh->getGroupHandle(group); in Close() 124 ObjMesh::Vertex vertex0(vtxIndex[0]); in Close() 126 ObjMesh::Vertex vertex1(vtxIndex[1]); in Close() 128 ObjMesh::Vertex vertex2(vtxIndex[2]); in Close() 130 ObjMesh::Face face(vertex0, vertex1, vertex2); in Close()
|
H A D | objMeshRender.cpp | 186 ObjMeshRender::ObjMeshRender(ObjMesh * mesh_) : mesh(mesh_) in ObjMeshRender() 300 const ObjMesh::Group * groupHandle = mesh->getGroupHandle(i); in render() 497 const ObjMesh::Group * groupHandle = mesh->getGroupHandle(i); in render() 563 ObjMesh::Group group = mesh->getGroup(name); in renderGroupEdges() 571 ObjMesh::Face face = group.getFace(iFace); in renderGroupEdges() 592 const ObjMesh::Material * material = mesh->getMaterialHandle(i); in numTextures() 617 const ObjMesh::Material * material; in loadTextures() 678 const ObjMesh::Group * groupHandle = mesh->getGroupHandle(i); in outputOpenGLRenderCode() 699 ObjMesh::Face face = groupHandle->getFace(iFace); in outputOpenGLRenderCode() 737 const ObjMesh::Group * groupHandle = mesh->getGroupHandle(i); in renderNormals() [all …]
|
H A D | objMeshOrientable.cpp | 68 objMesh = new ObjMesh(filename, ObjMesh::ASCII, verbose); in ObjMeshOrientable() 72 ObjMeshOrientable::ObjMeshOrientable(ObjMesh * objMesh, int generateHalfEdges, int * numOrientation… in ObjMeshOrientable() 129 const ObjMesh::Group * currentGroup = objMesh->getGroupHandle(i); in GenerateHalfEdgeDataStructure() 139 ObjMesh::Face face = currentGroup->getFace(iFace); // get face whose number is iFace in GenerateHalfEdgeDataStructure() 409 ObjMesh::Group * currentGroup = (ObjMesh::Group*) objMesh->getGroupHandle(groupID); in GenerateHalfEdgeDataStructure() 515 const ObjMesh::Group * currentGroup = objMesh->getGroupHandle(i); in GenerateHalfEdgeDataStructure() 530 const ObjMesh::Group * currentGroup = objMesh->getGroupHandle(i); in GenerateHalfEdgeDataStructure() 663 ObjMesh * ObjMeshOrientable::GenerateOrientedMesh() in GenerateOrientedMesh() 665 ObjMesh * outputObjMesh = new ObjMesh(*objMesh); in GenerateOrientedMesh() 669 ObjMesh::Group * groupHandle = (ObjMesh::Group*) outputObjMesh->getGroupHandle(i); in GenerateOrientedMesh() [all …]
|
H A D | objMeshOffsetVoxels.h | 52 …ObjMeshOffsetVoxels(ObjMesh * objMesh, int resolution[3], int depth=0, double expansionFactor=1.2)… 53 …ObjMeshOffsetVoxels(ObjMesh * objMesh, int resolution[3], int depth, Vec3d boxbmin, Vec3d boxbmax)… 69 double ** interpolationWeights, ObjMesh ** surfaceMesh); 72 ObjMesh * surfaceOffsetMesh(); 114 ObjMesh * objMesh;
|
H A D | objMeshGraph.cpp | 5 ObjMeshGraph::ObjMeshGraph(ObjMesh * objMesh_): objMesh(objMesh_) in ObjMeshGraph() 20 const ObjMesh::Group * currentGroup = objMesh->getGroupHandle(i); in ObjMeshGraph() 27 const ObjMesh::Face face = currentGroup->getFace(iFace); // get face whose number is iFace in ObjMeshGraph() 82 const ObjMesh::Group * currentGroup = objMesh->getGroupHandle(i); in ObjMeshGraph() 89 const ObjMesh::Face face = currentGroup->getFace(iFace); // get face whose number is iFace in ObjMeshGraph() 226 Graph * ObjMeshGraph::GenerateVertexGraph(const ObjMesh * objMesh, int faceClique) in GenerateVertexGraph() 235 const ObjMesh::Group * group = objMesh->getGroupHandle(i); in GenerateVertexGraph() 238 const ObjMesh::Face * face = group->getFaceHandle(j); in GenerateVertexGraph() 248 vector<ObjMesh::Vertex> vertices; in GenerateVertexGraph()
|
H A D | objMesh.h | 88 class ObjMesh 230 …explicit ObjMesh(const std::string & filename, fileFormatType fileFormat = ASCII, int verbose = 0); 233 explicit ObjMesh() {} in ObjMesh() function 236 …explicit ObjMesh(int numVertices, const double * vertices, int numTriangles, const int * triangles… 242 explicit ObjMesh(const ObjMesh & objMesh); 246 explicit ObjMesh(void * binaryInputStream, streamType stream, int verbose = 0); 445 void appendMesh(ObjMesh * mesh); // appends "mesh" to this mesh 450 …ObjMesh * clone(const std::vector<std::pair<int, int> > & groupsAndFaces, int removeIsolatedVertic… 455 ObjMesh * splitIntoConnectedComponents(int withinGroupsOnly=0, int verbose=0) const; 457 …ObjMesh * extractGroup(unsigned int group, int keepOnlyUsedNormals = 1, int keepOnlyUsedTextureCoo… [all …]
|
/dports/audio/faust/faust-2.37.3/tools/physicalModeling/mesh2faust/vega/libraries/distanceField/ |
H A D | signedDistanceFieldFromPolygonSoup.h | 50 …SignedDistanceFieldFromPolygonSoup(ObjMesh * objMesh, double expansionRatio = 1.5, bool useCubicBo… 75 ObjMesh * objMesh; 83 ObjMesh * RemoveInteriorComponents(ObjMesh * isoMesh); 86 …bool ConstructPseudoNormalComponents(ObjMesh * isoMesh, std::vector<TriangleWithCollisionInfoAndPs… 95 ObjMesh * ComputeIsosurface(DistanceFieldBase * distanceField, double sigma);
|
H A D | signedDistanceFieldFromPolygonSoup.cpp | 64 ObjMesh* pseudoNormalObjMesh = isoMesh; in ConstructPseudoNormalComponents() 114 if (ObjMesh::isNaN(pseudoNormals[normali][0]) || in ConstructPseudoNormalComponents() 115 ObjMesh::isNaN(pseudoNormals[normali][1]) || in ConstructPseudoNormalComponents() 116 ObjMesh::isNaN(pseudoNormals[normali][2])) in ConstructPseudoNormalComponents() 178 ObjMesh * SignedDistanceFieldFromPolygonSoup::RemoveInteriorComponents(ObjMesh * isoMesh) in RemoveInteriorComponents() 193 const ObjMesh::Group * group = isoMesh->getGroupHandle(i); in RemoveInteriorComponents() 200 const ObjMesh::Face * face = group->getFaceHandle(j); in RemoveInteriorComponents() 205 const ObjMesh::Vertex * vertex = face->getVertexHandle(v); in RemoveInteriorComponents() 226 ObjMesh * cloneMesh = isoMesh->clone(groupFaceList, 0); in RemoveInteriorComponents() 405 ObjMesh * isoMesh = ComputeIsosurface(field, sigma); in ComputeDistanceField() [all …]
|
/dports/audio/faust/faust-2.37.3/tools/physicalModeling/mesh2faust/vega/libraries/windingNumber/ |
H A D | windingNumber.cpp | 27 double WindingNumber::computeWindingNumber(ObjMesh * objMesh, const Vec3d & p) in computeWindingNumber() 36 const ObjMesh::Group* group = objMesh->getGroupHandle(i); in computeWindingNumber() 39 const ObjMesh::Face* face = group->getFaceHandle(j); in computeWindingNumber() 45 const ObjMesh::Vertex* v = face->getVertexHandle(k); in computeWindingNumber()
|