THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/02/2005 at 19:05, xxxxxxxx wrote:
Cinema 4D Version: 9.012
Platform: Windows ;
Language(s) : C++ ;
I would like to know how to get the points of an selected edge? By using the following code, I managed to get number of selected edges. Now I want to know the points of each and every edges. Can any one help me?
plyobject = ToPoly(obj);
n.Init(plyobject->GetPointCount(), plyobject->GetPolygon(), plyobject->GetPolygonCount(), NULL);
BaseSelect *bss = plyobject->GetSelectedEdges(&n;, EDGES_SELECTION);
On 17/02/2005 at 14:08, xxxxxxxx wrote:
The code to browse through all available edges is documented in the SDK docs in the Neighbor class. Have a look at it, and your prob is solved. (GetPolyInfo!)
On 17/02/2005 at 18:28, xxxxxxxx wrote:
Yes I have gone through that sample code which tells how to get all the edges. But what I want to know is only selected edges. After that I would like to get the points of those selected edges.
On 18/02/2005 at 02:18, xxxxxxxx wrote:
? You have the selected edges in your BaseSelect. Simply check the edge index that you get when you browse thru the edges with the selection state in your BaseSelect. And the browse function also tells you the point indices of each edge.
On 20/02/2005 at 19:28, xxxxxxxx wrote:
Ok, I got it. Thanks Katachi.