Import STL file into matlab and use a transform object as a parent to move it in a 3D plot

조회 수: 10 (최근 30일)
Hello, for university, I need to import an STL object into a 3D game built on matlab. Usually I create objects using the patch function and set a transform object as the parent to move it around the game. Is there a way to import the STL object into matlab as a patch or convert it to a patch. Or somehow use the transform object method to move the STL object around the game?

채택된 답변

Yazan
Yazan 2021년 7월 22일
You can use this contribution to return the patch structs from a given stl file.
  댓글 수: 1
DGM
DGM 2025년 7월 12일
편집: DGM 2025년 10월 7일 18:14
Since R2018b, MATLAB has built-in STL tools. You don't need to download anything.
For legacy versions needing third-party tools, I'd strongly recommend these tools over #22409/#20922. This explains why.
If you use #22409 or #20922 in a modern installation, you will shadow the inbuilt tools and likely cause problems for yourself unless you rename them.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 STL (STereoLithography)에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by