Storing Mesh Orientation Info

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 02 February 2013   #1
Storing Mesh Orientation Info

Hey,

I have been reading around about this issue, and I haven't been able to get quite a definitive answer. Maybe the answer is quite obvious:

I am creating a module that requires a constrained version of Dijkstra's algorithm to walk across a (triangular) mesh. As such, I have created a graph data structure to hold various containers of information about the mesh.

One issue that I am trying to deal with is that I require knowledge of an edge's orientation. IE, what triangle is to the left/right of a given edge. I know there are better data structures to deal with this, but I wonder if Maya's iterators work in such a fashion that they maintain orientation information.

Specifically, suppose I do this:

vector<int> vertexIDs;

MItMeshVertex vertIter(mesh,&status);

for(; !vertIter.isDone(); vertIter.next()){
vertexIDs.push_back( vertIter.index());
}

What would my vertexID vector hold? This "vertIter.index()", does it return the vertex index as it is defined in an orientable mesh?

I hope this makes sense.
 
Old 02 February 2013   #2
Originally Posted by ahaidari: Hey,

I have been reading around about this issue, and I haven't been able to get quite a definitive answer. Maybe the answer is quite obvious:

I am creating a module that requires a constrained version of Dijkstra's algorithm to walk across a (triangular) mesh. As such, I have created a graph data structure to hold various containers of information about the mesh.

One issue that I am trying to deal with is that I require knowledge of an edge's orientation. IE, what triangle is to the left/right of a given edge. I know there are better data structures to deal with this, but I wonder if Maya's iterators work in such a fashion that they maintain orientation information.

Specifically, suppose I do this:

vector<int> vertexIDs;

MItMeshVertex vertIter(mesh,&status);

for(; !vertIter.isDone(); vertIter.next()){
vertexIDs.push_back( vertIter.index());
}

What would my vertexID vector hold? This "vertIter.index()", does it return the vertex index as it is defined in an orientable mesh?

I hope this makes sense.


You might try to look at blindDataType and polyBlindDataType command in maya, I don't know if this will help but what I know is this two commands create a node and stores data of whatever is selected in a polygon.
 
Old 02 February 2013   #3
the polyInfo command should return the data you are looking for in a predictable fashion.
 
Old 02 February 2013   #4
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 12:43 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.