Cut triangulated surfaces with 2D loop polygons.
mkdir build
cd build
cmake .. -GNinja -DTSC_BUILD_PARAVIEW_PLUGIN=ON -DTSC_WRAP_PYTHON=ON
ninja install
Filters -> SCUT -> Triangulation Cutter
#include <tscTriSurfaceCutter.h>
vtkNew<tscTriSurfaceCutter> cutter;
// xxx: filter that outputs a vtkPolyData
cutter->SetInputConnection(0, xxx->GetOutputPort());
// yyy: filter that outputs a vtkPolyData
cutter->SetInputConnection(1, yyy->GetOutputPort());
cutter->Update();
cutMesh = cutter->GetOutput(0);
import tsc
...
cutter = tsc.tscTriSurfaceCutter()
cutter.SetInputConnection(triangulation.GetOutputPort())
cutter.SetLoopsConnection(1, loops.GetOutputPort())
...
./benchmark <option(s)>Options:
-h,--help Show this help message
-m,--mesh Specify mesh file (*.vtp, *.vtu)
-l,--loops Specify loops file (*.vtp)
-i,--invert Invert 2d boolean. Portions inside loops will be removed.
-t,--translationspeed Speed multiplier for mesh translations along x, y, z
-r,--rotationspeed Speed multiplier for mesh rotation along z
--movable Make the mesh movable.
--vtkcookiecutter Use vtkCookieCutter instead
--vtkclipdataset Use vtkClipDataset with vtkImplicitSelectionLoop instead
Controls:
W: Z+ | S: Z-
Up: Y+ | Down: Y-
Left: X+ | Right: X-
Z: CCW | C: CW (Looking down Z-)
K:ScaleUp| H:ScaleDown