About Store Forum Documentation Contact



Post Reply 
Keeping Track of MeshBase weld Operations
Author Message
Chris Offline
Member

Post: #1
Keeping Track of MeshBase weld Operations
Hi,

I'm trying to keep track of which vertexes get welded, in a list of helper memory stored for each new welded vertex.

Input:

Code:
struct Helper {
    Memb<UInt> vtxs; // recorded edge-collapses in "weld" operation
};

Code:
Memb<Helper> Helpers;

MeshBase Original; // these two are initially identical
MeshBase Welded;

Welded.weldVtx(0U, Theta).setAdjacencies();
FREPA(Welded.vtx) { Helper &H = Helpers.New(); H.vtxs.... }

Question:
How can I populate the helper memory such that "vtxs" contains a list of vertexes id's refering to the Original MeshBase before the weld operation?- If this is not possible, please could you advise how I can construct a custom weld function, similar to .weldVtx(0U, Theta), to do this?

Thanks
03-23-2011 12:29 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Keeping Track of MeshBase weld Operations
the only thing I think could help you is MeshBase::setVtxDup
it will setup vtx.dup (duplicates)
each dup should point to to index of other vertex it should be welded with (or self), don't remember if it points to -1 in some case, you need to check that
03-23-2011 06:56 PM
Find all posts by this user Quote this message in a reply
Chris Offline
Member

Post: #3
RE: Keeping Track of MeshBase weld Operations
Thanks, i'll check this soon - just heading out for a few hours.
03-23-2011 06:58 PM
Find all posts by this user Quote this message in a reply
Post Reply