Page 1 of 1
getAdjoiningFacesToVertex()
Posted: Sun Oct 10, 2010 5:32 pm
by Jorge Medina
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
Re: getAdjoiningFacesToVertex()
Posted: Wed Oct 13, 2010 12:22 pm
by Alex
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.
Re: getAdjoiningFacesToVertex()
Posted: Wed Oct 13, 2010 1:09 pm
by Jorge Medina
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.
Re: getAdjoiningFacesToVertex()
Posted: Wed Oct 13, 2010 1:36 pm
by Alex
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.
Re: getAdjoiningFacesToVertex()
Posted: Thu Oct 14, 2010 12:06 am
by Jorge Medina
Yes, that is what I need.
Thanks for the idea.