Fri, 07/08/2022 - 08:44
Forums:
OCC.Extend.DataExchange module
read_stl_file(filename)
opens a stl file, reads the content, and returns a BRep topods_shape object
I thought this method is too slow to read a STL file, when it's come to 100M.
Has anyone found and solved this problem, thanks you.
Attachments:
Fri, 07/08/2022 - 09:45
STL stores unstructured triangulation data. B-Rep generated out of triangles is very heavy and slow to process.
But if the purpose of this import is displaying mesh in 3D viewer, then you may import it as triangulation rather than B-Rep, which should be considerably faster.
Fri, 07/08/2022 - 11:52
Thanks you for your answer.
I found this issue in Github
https://github.com/tpaviot/pythonocc-core/issues/1021
Fri, 07/08/2022 - 11:55
Besides, when I run tihs file, it report ImportError: DLL load failed while importing _Aspect.
I want to know if I use the wrong version of PythonOCC.
Fri, 07/08/2022 - 12:36
My version is called "pythonocc-7.5.2". There is no yet release ported to OCCT 7.6 as far as I know.
Mon, 07/11/2022 - 07:01
How could I get "pythonocc-7.5.2", I notice that ''pythonocc-core 7.5.1'' is the latest release version.
Mon, 07/11/2022 - 10:49
I don't think there is a much of difference between 7.5.1/7.5.2, as 7.5.2 is just a bug-fix release. Maybe I was wrong identifying my local build as 7.5.2.
Tue, 07/12/2022 - 03:46
OK, thanks a lot.
Thu, 08/18/2022 - 09:41
hi, I found that this method always take up the main thread, which prevents us from doing anything else. no matter I use multiple threads or multiple processes that cannot be changed. I wonder if it is related to the implementation of this method, thank you!
Mon, 08/22/2022 - 10:29
OCCT doesn't do any thread management here - whatever thread is calling this method, this thread will be busy doing the job, as calling any other algorithm.
Moving jobs into a background thread(s) should be done at application level.
Fri, 09/09/2022 - 19:31
also should be helpful https://github.com/KASUYASU/cutsim/issues/4?ysclid=l7up12vv9i324385355