Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8549

Select a sub object

$
0
0

@XNurbs wrote:

Loft.3DM (33.9 KB)

For the attached model, using the Selection Filter, one can select the sub object. However, the following code does not work for sub-object selection. How to fix the problem? Also, when specifying CRhinoGetObject::curve_object|CRhinoGetObject::edge_object for a box model, would Rhino selects a curve or edge from the model?

	CRhinoGetObject go;
	go.SetCommandPrompt(L"Select curve");
	go.EnableSubObjectSelect(TRUE, TRUE);
	unsigned int iGeometryTypeFilter = 0;
	iGeometryTypeFilter |= CRhinoGetObject::point_object;
	iGeometryTypeFilter |= CRhinoGetObject::curve_object;
	iGeometryTypeFilter |= CRhinoGetObject::edge_object;
	iGeometryTypeFilter |= CRhinoGetObject::brepvertex_filter;
	go.SetGeometryFilter(iGeometryTypeFilter);

	CRhinoGet::result res = go.GetObjects(1, 0);

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 8549

Trending Articles