Pointcloud to surface question

R G W

Active CAD practitioner
Hello, everyone. I'm RGW.
Recently I've had some problems reconstructing a surface using points.
I am using the sample/mfc/Geometry in the opencascade folder for testing.
The test results are shown in the figure below. When my point set is close to the origin, the result is better, but when my point set coordinates are far away from the origin, the result is not very good. Why?
Thanks in advance!
My point set txt file is attached with the question.

near result (good):
near_res.PNG

far result (bad):
far_res.PNG
 

Attachments

  • near_point.txt
    124 bytes · Views: 2
  • far_point.txt
    135 bytes · Views: 2

R G W

Active CAD practitioner
My test program is right here:
test-program.PNG

It is a program that comes with opencascade. path is opencascade-7.7.0/samples/mfc/geometry
 

Quaoar

Administrator
Staff member
You may want to take a look at APPSURF2 algorithm in Analysis Situs. I gave it a try on your data:

1694200747173.png
1694200801287.png

The only way of approximating scattered point clouds in OpenCascade is the PLATE algorithm, btw. If you have troubles to see the result in the MFC sample, it is very likely that an initial surface is somehow improperly chosen (by the sample app). The algorithm itself is alright, here is the result from Analysis Situs with the selected PLATE approximation method:

1694201065396.png
1694201164737.png

To run the algorithm, you start in a dialog invoked from the context menu:

1694201267764.png

This algorithm is only available on the master branch, so you'll have to compile Analysis Situs from sources.
 
Top