Skip to content
This repository has been archived by the owner on Dec 23, 2020. It is now read-only.

SelectSubObject #140

Open
gianpaolo-savio opened this issue Apr 22, 2013 · 1 comment
Open

SelectSubObject #140

gianpaolo-savio opened this issue Apr 22, 2013 · 1 comment

Comments

@gianpaolo-savio
Copy link

Hi,
I need to select and highlight a set o mesh vertices (TopologyVertices).
I use the following code for select the first 5 vertex, but selection appears for a moment and disappears.

pyhon
import Rhino
import scriptcontext

if( name == "main" ):
go=Rhino.Input.Custom.GetObject()
go.GeometryFilter=Rhino.DocObjects.ObjectType.MeshVertex
go.SetCommandPrompt("Get mesh vertex")
go.Get()
objref = go.Object(0)
go.Dispose()
MeshObj = objref.Object()
vertex=objref.GeometryComponentIndex.Index
mesh=objref.Mesh()
meTV=mesh.TopologyVertices
round=meTV.ConnectedTopologyVertices(vertex)
IT=Rhino.Geometry.ComponentIndexType.MeshTopologyVertex
for i in round:
CompInd=Rhino.Geometry.ComponentIndex(IT,i)
MeshObj.SelectSubObject(CompInd,True,True)
scriptcontext.doc.Views.Redraw()


I misunderstood something?
@sbaer
Copy link
Member

sbaer commented May 20, 2013

This is something that we won't be able to properly support until V6

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants