MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / writeEdges

Function writeEdges

applications/test/primitivePatch/Test-PrimitivePatch.C:85–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83
84
85void writeEdges
86(
87 const pointField& localPoints,
88 const edgeList& edges,
89 const label nInternalEdges
90)
91{
92 Info<< "Writing internal edges to internalEdges.obj" << nl << endl;
93
94 OFstream intStream("internalEdges.obj");
95
96 writeObj(intStream, localPoints);
97
98 for (label edgeI = 0; edgeI < nInternalEdges; edgeI++)
99 {
100 const edge& e = edges[edgeI];
101
102 intStream << "l " << e.start()+1 << ' ' << e.end()+1 << endl;
103 }
104
105 Info<< "Writing boundary edges to boundaryEdges.obj" << nl << endl;
106
107 OFstream bndStream("boundaryEdges.obj");
108
109 writeObj(bndStream, localPoints);
110
111 for (label edgeI = nInternalEdges; edgeI < edges.size(); edgeI++)
112 {
113 const edge& e = edges[edgeI];
114
115 bndStream << "l " << e.start()+1 << ' ' << e.end()+1 << endl;
116 }
117}
118
119
120void writeFaceEdges

Callers 1

mainFunction · 0.70

Calls 4

writeObjFunction · 0.70
startMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected