Marco Musy

Results 439 comments of Marco Musy

Hi, yes you need to build a camera object from method `camera_from_dict()` and then pass it to the plotter: ``` plotter = Plotter(N=2, sharecam=False) plotter.at(0).camera = camera_from_dict(...) plotter.show(resetcam=False) ```

Hi, unfortunately VTK doesn't seem to be able to avoid self intersections in many cases.. ( I also tried a different class called [vtkTubeBender](https://vtk.org/doc/nightly/html/classvtkTubeBender.html) which also does not work well)....

Have a look at `examples/basic/sliders*.py` ```py from vedo import * settings.default_font = "Calco" def slider_func(widget, event): value = widget.value lego = vol.legosurface(vmin=20, vmax=value, boundary=False) if lego.ncells: lego.cmap('seismic', vmin=0, vmax=value).add_scalarbar() #...

Thanks for the fix! I further modified it a bit - hope I didn't mess it up... :)

Hi @ManuGraiph consider the following example: ```py from vedo import * c1 = Circle() c2 = Circle().scale([2,1,1]).rotate_x(20).shift(4,1,0) l1 = Line(c1.boundaries()).c("blue").lw(4) l2 = Line(c2.boundaries()).c("purple").lw(4) print("lengths", l1.length(), l2.length()) # merge two circles...

Thanks Manu for your kind words, your user feedback and contribution helps constantly improving it!

Hi @ManuGraiph 1. Yes check out example `vedo -r examples/basic/mesh_threshold.py` and this variant ```py from vedo import * man = Mesh(dataurl+"man.vtk") # a dummy scalar field is added to the...

Try ```py from vedo import * square1 = Rectangle().scale(2).c('r5').alpha(0.5) square1.triangulate().subdivide(5, method=1).lw(1) square2 = Rectangle().scale(1).rotate_z(25).shift(.1,.2).c('b5').alpha(0.5) square2.triangulate().subdivide(5, method=1).lw(1) square1.distance_to(square2) print(square1) cut_square = square1.clone().cut_with_scalar(0.001, "Distance") show([[square1, square2], cut_square], N=2, axes=1) ``` ![Image](https://github.com/user-attachments/assets/faf5e90e-b372-4607-aded-fee2d4e9afda) Other...

Hi, how many points has got the line? if you want you can attach a file so i can have a look. `mesh.boundaries().write("test.ply")`

Sorry, my mistake: I need the vtk file as ply does not save lines.. `mesh.boundaries().write("test.vtk")`