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