mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -127,6 +127,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
// Points and lines
|
// Points and lines
|
||||||
DynamicList<point> points;
|
DynamicList<point> points;
|
||||||
|
DynamicList<vector> pointNormals;
|
||||||
DynamicList<labelList> polyLines;
|
DynamicList<labelList> polyLines;
|
||||||
DynamicList<labelList> polygons;
|
DynamicList<labelList> polygons;
|
||||||
|
|
||||||
@ -151,6 +152,14 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
points.append(point(x, y, z));
|
points.append(point(x, y, z));
|
||||||
}
|
}
|
||||||
|
else if (cmd == "vn")
|
||||||
|
{
|
||||||
|
scalar x, y, z;
|
||||||
|
|
||||||
|
lineStream >> x >> y >> z;
|
||||||
|
|
||||||
|
pointNormals.append(vector(x, y, z));
|
||||||
|
}
|
||||||
else if (cmd == "l")
|
else if (cmd == "l")
|
||||||
{
|
{
|
||||||
polyLines.append(parseVertices(line));
|
polyLines.append(parseVertices(line));
|
||||||
@ -264,6 +273,14 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
outFile << nl << "NORMALS pointNormals float\n";
|
||||||
|
forAll(pointNormals, i)
|
||||||
|
{
|
||||||
|
const vector& n = pointNormals[i];
|
||||||
|
|
||||||
|
outFile << n.x() << ' ' << n.y() << ' ' << n.z() << nl;
|
||||||
|
}
|
||||||
|
|
||||||
Info<< "End\n" << endl;
|
Info<< "End\n" << endl;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user