MCPcopy Create free account
hub / github.com/cutdigital/mcut / main

Function main

tutorials/QuerySeamVerticesSorted/QuerySeamVerticesSorted.cpp:64–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 }
63
64int main()
65{
66
67 MioMesh srcMesh = {
68 nullptr, // pVertices
69 nullptr, // pNormals
70 nullptr, // pTexCoords
71 nullptr, // pFaceSizes
72 nullptr, // pFaceVertexIndices
73 nullptr, // pFaceVertexTexCoordIndices
74 nullptr, // pFaceVertexNormalIndices
75 0, // numVertices
76 0, // numNormals
77 0, // numTexCoords
78 0, // numFaces
79 };
80
81 MioMesh cutMesh = srcMesh;
82
83 //
84 // read-in the source-mesh from file
85 //
86
87 mioReadOFF(DATA_DIR "/source-mesh.off",
88 &srcMesh.pVertices,
89 &srcMesh.pFaceVertexIndices,
90 &srcMesh.pFaceSizes,
91 &srcMesh.numVertices,
92 &srcMesh.numFaces);
93
94 //
95 // read-in the cut-mesh from file
96 //
97
98 mioReadOFF(DATA_DIR "/cut-mesh.off",
99 &cutMesh.pVertices,
100 &cutMesh.pFaceVertexIndices,
101 &cutMesh.pFaceSizes,
102 &cutMesh.numVertices,
103 &cutMesh.numFaces);
104
105 //
106 // create a context
107 //
108
109 McContext context = MC_NULL_HANDLE;
110 McResult status = mcCreateContext(&context, MC_NULL_HANDLE);
111
112 my_assert (status == MC_NO_ERROR);
113
114 //
115 // do it
116 //
117 status = mcDispatch(
118 context,
119 MC_DISPATCH_VERTEX_ARRAY_DOUBLE | MC_DISPATCH_ENFORCE_GENERAL_POSITION,
120 // source mesh
121 srcMesh.pVertices,

Callers

nothing calls this directly

Calls 6

mcCreateContextFunction · 0.85
mcDispatchFunction · 0.85
mcGetConnectedComponentsFunction · 0.85
mcReleaseContextFunction · 0.85

Tested by

no test coverage detected