points export

171 views
Skip to first unread message

docV

unread,
Feb 26, 2016, 7:10:42 PM2/26/16
to OpenVSP
How could I export the point cloud after that I got them by compgeom?

Rob McDonald

unread,
Feb 26, 2016, 10:45:16 PM2/26/16
to ope...@googlegroups.com
Interesting...

Mind if I ask why you want just the points?

The point cloud feature was really only added to support creating a
point cloud for use with FitModel. I never thought anyone would want
to export just the points.

You can export the triangles (and the points with them) in a number of
formats. STL, TRI, MSH, etc.

If you _really_ just want the point cloud, I suggest you write out the
Cart3D *.tri file and then edit it in a text editor. Skip the first
line, it contains the number of points and the number of triangles.
Then, skip to the end of the points and delete the rest of the file.
You can follow the line numbers, or you can just look for where the
floating point numbers change to integers. Those are the triangle
vertex indices.

You could easily write a script to extract this information if you
need to do it more than once. If this is something that lots of
people need, I can easily add it to the export menu in OpenVSP.

Rob

On Fri, Feb 26, 2016 at 4:10 PM, docV <cv63...@gmail.com> wrote:
> How could I export the point cloud after that I got them by compgeom?
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenVSP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to openvsp+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

docV

unread,
Feb 28, 2016, 5:59:21 PM2/28/16
to OpenVSP
I want to export the points to get a gmsh .geo file with splines running along u and w lines, so that I can make ruled surfaces easy to manage. This way I can get some more benefits than .stl or .msh.

Rob McDonald

unread,
Feb 28, 2016, 6:35:12 PM2/28/16
to ope...@googlegroups.com
In that case, what you probably want to start from is a *.hrm file.
That is a pretty direct export of the on-screen wireframe. You would
then need to convert it to *.geo yourself.

However, isn't GMSH based on Open Cascade? In that case, you should
be able to import either STEP or IGES -- which should be the best of
everything.

Am I missing something?

Rob

docV

unread,
Mar 1, 2016, 10:24:14 AM3/1/16
to OpenVSP
GMSH is Open Cascade based, however its cad engine cannot intersect step/iges it imports from GMSH (I tried unsuccesfully to get a watertight iges/step model in FreeCAD, that is opencascade based too). Compgeom makes intersected discrete surfaces, whose points can be used to make splines and then ruled surfaces in GMSH. 
Reply all
Reply to author
Forward
0 new messages