algorithmic modeling for Rhino
When I Using the Point on Curve Component Of Grasshopper, to get the Point on the Curve, I Got an Very strange Problerm, And I think for an long time, and I can not think out what wrong with it . The Input Paramater type is an Custom Paramater Type derive from GH_Curve:The Detail is Show at the picture
Update:
The Code is on the attachment as below
Tags:
Yup, the Point On Curve object is weird in this respect (probably qualifies as a bug). It inherits from GH_Param<GH_Point>, however it needs to take in curves, so it cannot rely on the standard conversion algorithms. Turns out all it tries is GH_Curve.CastFrom(remoteGoo) and throws an exception if that fails. It doesn't try to then do remoteGoo.CastTo<GH_Curve>. It probably should.
Looks like at the moment there's nothing you can do about this.
Welcome to
Grasshopper
© 2025 Created by Scott Davidson.
Powered by