algorithmic modeling for Rhino
Tags:
Stuff is drawn inside DrawViewportWires, so when you override the method you short-circuit the default behaviour. Place a call to the base class to get that functionality back:
Public Overrides Sub DrawViewportWires(ByVal args As IGH_PreviewArgs)
MyBase.DrawViewportWires(args)
...
Be sure to do the same for other methods you override in the preview such as ClippingBox.
Public Overrides ReadOnly Property ClippingBox() As BoundingBox
GetDim clipBox As BoundingBox = MyBase.ClippingBox
clipBox.Union(box)Return clipBox
End Get
End Property
Baking is a completely different thing from previewing. If you want to bake your text as well, you need to override the BakeGeometry(ByVal doc As RhinoDoc, ByVal att As ObjectAttributes, ByVal obj_ids As List(Of System.Guid)) method.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by