|
[Sponsors] |
August 7, 2015, 05:18 |
.stl from calculated quad-points
|
#1 |
Member
Join Date: May 2014
Posts: 40
Rep Power: 11 |
Dear Foamers,
is there an easy way to create an .stl-file from calculated points in the domain? The calculated points describe quadFaces, so I tried splitting them with the triangles() function from the face-class (src/OpenFOAM/meshes/meshShapes/face/face.C). This function expects a pointField as an argument. How can such a pointField be defined by the calculated quad points? Is it necessary to create a whole new mesh-instance? Kind regards Philip |
|
August 7, 2015, 06:52 |
|
#2 |
Member
Join Date: May 2014
Posts: 40
Rep Power: 11 |
Just found out how points can be added to the pointField. It's only possible component wise:
Code:
vector pTest = vector(1.0, 2.0, 3.0); // points[0][0] = pTest; //does not work points[0].x() = pTest.x(); points[0].y() = pTest.y(); points[0].z() = pTest.z(); |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] SnappyHexMesh .stl | Jochem | OpenFOAM Meshing & Mesh Conversion | 10 | September 23, 2016 04:26 |
Extract points from polyline | Saidul | ANSYS | 0 | January 18, 2015 21:54 |
Projecting Points onto .stl Defined Surface | mchurchf | OpenFOAM | 3 | August 17, 2012 17:19 |
How to import only some points in paraFoam? | maximeg | OpenFOAM Running, Solving & CFD | 1 | July 12, 2010 10:56 |
extreme points problem | Lipo Wang | Main CFD Forum | 2 | August 18, 2004 03:15 |