getAdjoiningFacesToVertex()

Post Reply
Jorge Medina
Posts: 71
Joined: Wed Jun 09, 2010 6:23 pm

getAdjoiningFacesToVertex()

Post by Jorge Medina » Sun Oct 10, 2010 5:32 pm

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
Jorge Medina Alix
VFX TD / 3DFluids Consultancy

Tech RF Blog: RF Wisdom
Personal works (WIP): Liquid Entropy

User avatar
Alex
Site Admin
Posts: 143
Joined: Mon Jun 14, 2010 9:35 am

Re: getAdjoiningFacesToVertex()

Post by Alex » Wed Oct 13, 2010 12:22 pm

Hi George,

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()
This code would be wrong:

Code: Select all

waterlineVertices = Realwave01.getWaterLine("object")
for v in waterlineVertices:
	faces = object.getAdjoiningFacesToVertex(v)
	# this would be wrong too
	faces = Realwave01.getAdjoiningFacesToVertex(v)
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.
Alex Ribao
RealFlow Team
Next Limit Technologies

Jorge Medina
Posts: 71
Joined: Wed Jun 09, 2010 6:23 pm

Re: getAdjoiningFacesToVertex()

Post by Jorge Medina » Wed Oct 13, 2010 1:09 pm

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.
Jorge Medina Alix
VFX TD / 3DFluids Consultancy

Tech RF Blog: RF Wisdom
Personal works (WIP): Liquid Entropy

User avatar
Alex
Site Admin
Posts: 143
Joined: Mon Jun 14, 2010 9:35 am

Re: getAdjoiningFacesToVertex()

Post by Alex » Wed Oct 13, 2010 1:36 pm

Hi again George,

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

Jorge Medina
Posts: 71
Joined: Wed Jun 09, 2010 6:23 pm

Re: getAdjoiningFacesToVertex()

Post by Jorge Medina » Thu Oct 14, 2010 12:06 am

Yes, that is what I need.
Thanks for the idea.
Jorge Medina Alix
VFX TD / 3DFluids Consultancy

Tech RF Blog: RF Wisdom
Personal works (WIP): Liquid Entropy

Post Reply