Whether a given point is inside or outside a non-convex 3D tessellated (triangular mesh/ STL file) object?

Hi,
I have a 3D, non-convex (very complex), triangular mesh ( = STL file i.e. triangular representation of surface of a 3-D object).
Now, a cube is intersecting with the STL object such that few triangles of the object are partially or fully inside the cube.
I want to know which vertices of the cube are outside the object.
thank you

回答 (3 件)

Walter Roberson
Walter Roberson 2011 年 6 月 23 日
Perhaps you could adapt something from this MATLAB Solution .
(I thought I knew a way for a moment, but realized that particular way won't work. It might not be easy.)

4 件のコメント

nand mourya
nand mourya 2011 年 6 月 24 日
MATLAB Solution will work for convex polyhedron. I have a non-convex polyhedron object. I tried to adapt for non-convex object but haven't got any success till now.
The cube part is convex, though.
Still, I didn't "dream up" a way overnight, sorry.
Walter, you clearly got too much sleep!
nand mourya
nand mourya 2011 年 6 月 24 日
Walter, thanks for the first suggestion.
Please pour in any idea.

サインインしてコメントする。

Sean de Wolski
Sean de Wolski 2011 年 6 月 24 日
You could "voxelize" it using this tool:
FEX:voxelize And then do a simple ismember check.

1 件のコメント

nand mourya
nand mourya 2011 年 6 月 24 日
thanks for replying...
but this is not what i was looking for....

サインインしてコメントする。

Johannes Korsawe
Johannes Korsawe 2013 年 9 月 19 日
If the tesselated surface is watertight and consists of triangles only, you can use intriangulation from the FEX.
Regards, Johannes

質問済み:

2011 年 6 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by