how to deal with the stl file

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

how to deal with the stl file

Franks
Hi,list

I use "vtkSTLReader" to read the *.stl file(generate by some CAD softwares).
The origin data(it contains three cylinders) disply like pic1, and I want to
join these cylinders like pic2.


<http://vtk.1045678.n5.nabble.com/file/t342588/2.png>
pic1

<http://vtk.1045678.n5.nabble.com/file/t342588/3.png>
pic2

I have some problems.
1. The cells in data are all "VTK_TRIANGLE". I do not know how to change the
height of the cylinder.
2. I still do not know how to deal with the junction of three cylinders.

Frank



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: how to deal with the stl file

mmusy
You might use vtkTransformPolyDataFilter
(https://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/TransformPolyData)
to move the meshes
along with vtkBooleanOperationPolyDataFilter().SetOperationToUnion()
to join the surfaces.

Or have a look at this:
https://github.com/marcomusy/vtkplotter/blob/master/examples/basic/boolean.py
<http://vtk.1045678.n5.nabble.com/file/t342608/bool.png>



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers
Reply | Threaded
Open this post in threaded view
|

Re: how to deal with the stl file

Franks
Thanks for the quick response mmusy.

I want to generate the curved face by vtk to join three cylinders surface but not transform the polydata. vtkBooleanOperationPolyDataFilter().SetOperationToUnion() does not meet my need. I want vtk to do three-tube mixing like Rhino to generate the curved face by curvature and boundary.

Any ideas or demos?

Frank

Sent from the VTK - Users mailing list archive at Nabble.com.

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
https://public.kitware.com/mailman/listinfo/vtkusers