stl_reader | One header C++ library to load ascii and binary stl | 3D Printing library
kandi X-RAY | stl_reader Summary
kandi X-RAY | stl_reader Summary
One header C++ library to load ascii and binary stl ('stereolithography') geometry files
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of stl_reader
stl_reader Key Features
stl_reader Examples and Code Snippets
Community Discussions
Trending Discussions on stl_reader
QUESTION
I am trying to compute the difference between two vtkPolyData by using the vtkBooleanOperationPolyDataFilter class. I read the only example provided in VTK examples website and I tried to use that.
However, my problem is a little bit different because I have .stl files. Therefore, first I have to translate .stl files to vtkPolyData. I am doing this with the function convert_stl_to_polydata()
. Then, I use compute_difference()
to compute the difference and write the output.
ANSWER
Answered 2020-Feb-11 at 02:51- Yes, you're using
vtkBooleanOperationPolyDataFilter
correctly. vtkSTLReader
creates avtkPolyData
, which is the correct input container for the boolean operation filter. Therefore: Yes, it is possible to read STLs and immediately process them withvtkBooleanOperationPolyDataFilter
.
You lose some of the information when converting the output from vtkPolyData
to vtkUnstructuredGrid
. I think the shallow copy only copies the points, but not the cells. Have you checked the following?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install stl_reader
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page