crop a vloume by the curve draw react-vtkjs

how can i crop a volume by the curve react-vtk-js