Is there an "inverse" of decsg?

조회 수: 1 (최근 30일)
Tyler Fara
Tyler Fara 2024년 8월 19일
댓글: Tyler Fara 2024년 8월 19일
Is there a function that is like the invese of decsg? By that I mean: dl = decsg(gd) takes a geometry description matrix gd and returns a decomposed geometry description matrix dl. But what I need is the opposite: Given dl I need to "reconstitute" gd.

채택된 답변

Animesh
Animesh 2024년 8월 19일
편집: Animesh 2024년 8월 19일
It appears that there isn't an inverse for the 'decsg' function in MATLAB. This is because the 'decsg' function in MATLAB isn't inherently a one-to-one function. Its role is to decompose a given Constructive Solid Geometry (CSG) model into its minimal regions, and the relationship between the input geometry description and the output decomposed geometry isn't strictly one-to-one.
You can refer the following MathWorks documentation for more information:
  댓글 수: 1
Tyler Fara
Tyler Fara 2024년 8월 19일
OK that makes sense, and that is what I was afraid of. I will figure out another way to do what I need done! Thanks so much.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Geometry and Mesh에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by