Hello. I would like to know how to subtract 2 volumes in vrworld. Does a function already exist for this?

2 次查看(过去 30 天)
Hello. I would like to know how to subtract 2 volumes in vrworld. Does a function already exist for this? For example, I would like to show a cube and the difference between this one and a cylinder placed into it. Thank you.
  1 个评论
Vincent Flotron
Vincent Flotron 2023-6-28
Finally, I choose the following pragmatic solution. Driving OpenSCAD from MATLAB.
Below are the steps:
  1. Open OpenSCAD.
  2. In OpenSCAD, open the file 'myfile.scad'.
  3. From MATLAB, write the OpenSCAD commands in the file 'myfile.scad' to load two STL files of the objects, position them correctly, and apply the boolean operation.
  4. OpenSCAD will automatically detect the file has changed and update its view.
  5. From MATLAB, capture a screenshot.
  6. Repeat steps 2 to 5 until you have enough pictures to create a short movie.
  7. Use a MATLAB function to compile the pictures into a small movie.

请先登录,再进行评论。

回答(1 个)

Nishan Nekoo
Nishan Nekoo 2025-3-4
Copying Vincent's solution from above as an answer:
Finally, I choose the following pragmatic solution. Driving OpenSCAD from MATLAB.
Below are the steps:
  1. Open OpenSCAD.
  2. In OpenSCAD, open the file 'myfile.scad'.
  3. From MATLAB, write the OpenSCAD commands in the file 'myfile.scad' to load two STL files of the objects, position them correctly, and apply the boolean operation.
  4. OpenSCAD will automatically detect the file has changed and update its view.
  5. From MATLAB, capture a screenshot.
  6. Repeat steps 2 to 5 until you have enough pictures to create a short movie.
  7. Use a MATLAB function to compile the pictures into a small movie.

类别

Help CenterFile Exchange 中查找有关 Simulation 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by