Discussion:
[vtkusers] how to deal with the stl file
Franks
2018-11-21 15:23:46 UTC
Permalink
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.


<Loading Image...>
pic1

<Loading Image...>
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
mmusy
2018-11-21 18:21:48 UTC
Permalink
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
<Loading Image...>



--
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
Franks
2018-11-29 03:43:04 UTC
Permalink
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: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
Continue reading on narkive:
Loading...