CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Basic geometric operations on polyMesh like intersections (https://www.cfd-online.com/Forums/openfoam-solving/59036-basic-geometric-operations-polymesh-like-intersections.html)

bfa March 14, 2008 05:23

Greetings, I need to perform
 
Greetings,
I need to perform some basic geometric calculations on my mesh. In particular I'd like to intersect a boundaryPatch with a ray and need to know the coordinates of the intersection.
I know I could do it using an octTree based on a triSurface. But is there a) an easy way to convert my boundaryPatch to a triSurface or b) any function that gives me the hitPoint of a line through a patch ?
I can obtain the points from primitivePatch but can't find a function to obtain a triFaceList from the faces on the patch.
Any help is appreciated.

regards
Bjoern

bfa March 14, 2008 05:26

correction: replace the word
 
correction:
replace the word boundaryPatch with boundaryMesh. Still mixing it up sometimes.
Reading source for several hours makes your head spin.


All times are GMT -4. The time now is 10:28.