Is there an "inverse" of decsg?

2 ビュー (過去 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 Center および File ExchangeGeometry and Mesh についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by