Hi guys!
Could you check this function works fine?
I am trying to get the sharing faces from the vertexex in a realwave-object waterline.
The list containing the faces always gives 0 faces.
:-J
getAdjoiningFacesToVertex()
-
- Posts: 71
- Joined: Wed Jun 09, 2010 6:23 pm
getAdjoiningFacesToVertex()
Jorge Medina Alix
VFX TD / 3DFluids Consultancy
Tech RF Blog: RF Wisdom
Personal works (WIP): Liquid Entropy
VFX TD / 3DFluids Consultancy
Tech RF Blog: RF Wisdom
Personal works (WIP): Liquid Entropy
Re: getAdjoiningFacesToVertex()
Hi George,
if you want to get the object faces that belong to the waterline you should use something like this:
This code would be wrong:
getAdjoiningFacesToVertex() function needs as parameter a vertex that actually belongs to that object. Otherwise the result might be unexpected.
Vertices returned by getWaterLine() do not belong to the object neither the RealWave. They just describe a shape.
Let me know if it helps or messes everything up even more.
if you want to get the object faces that belong to the waterline you should use something like this:
Code: Select all
(vertices,faces) = object.getGeometryCrossingRealwave()
Code: Select all
waterlineVertices = Realwave01.getWaterLine("object")
for v in waterlineVertices:
faces = object.getAdjoiningFacesToVertex(v)
# this would be wrong too
faces = Realwave01.getAdjoiningFacesToVertex(v)
Vertices returned by getWaterLine() do not belong to the object neither the RealWave. They just describe a shape.
Let me know if it helps or messes everything up even more.
Alex Ribao
RealFlow Team
Next Limit Technologies
RealFlow Team
Next Limit Technologies
-
- Posts: 71
- Joined: Wed Jun 09, 2010 6:23 pm
Re: getAdjoiningFacesToVertex()
Good to know!
What I want to achieve exactly is to get the faces belonging to RW which are arround the object, this is the faces not clrossing the object faces to avoid emission inside the volume of the object.
I´ll try the code you posted.
Thanks a lot Alex.
What I want to achieve exactly is to get the faces belonging to RW which are arround the object, this is the faces not clrossing the object faces to avoid emission inside the volume of the object.
I´ll try the code you posted.
Thanks a lot Alex.
Jorge Medina Alix
VFX TD / 3DFluids Consultancy
Tech RF Blog: RF Wisdom
Personal works (WIP): Liquid Entropy
VFX TD / 3DFluids Consultancy
Tech RF Blog: RF Wisdom
Personal works (WIP): Liquid Entropy
Re: getAdjoiningFacesToVertex()
Hi again George,
in that case, you should have a look at the following functions of RealWave:
in that case, you should have a look at the following functions of RealWave:
- getWaterLine() - To get the set of points describing the waterline.
- getNearestVertex() - To get the closest RealWave vertices to the waterline.
- getVerticesInsideWaterLine() - To discard the faces inside the floating object.
Alex Ribao
RealFlow Team
Next Limit Technologies
RealFlow Team
Next Limit Technologies
-
- Posts: 71
- Joined: Wed Jun 09, 2010 6:23 pm
Re: getAdjoiningFacesToVertex()
Yes, that is what I need.
Thanks for the idea.
Thanks for the idea.
Jorge Medina Alix
VFX TD / 3DFluids Consultancy
Tech RF Blog: RF Wisdom
Personal works (WIP): Liquid Entropy
VFX TD / 3DFluids Consultancy
Tech RF Blog: RF Wisdom
Personal works (WIP): Liquid Entropy