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

2 visualizaciones (últimos 30 días)
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 comentario
Vincent Flotron
Vincent Flotron el 28 de Jun. de 2023
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.

Iniciar sesión para comentar.

Respuestas (1)

Nishan Nekoo
Nishan Nekoo el 4 de Mzo. de 2025
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.

Categorías

Más información sobre Simulation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by