View Full Version : Methods
Steve,
I have included a few more methods to put on the list!
-Trim Curve
-Split Curve
-Rebuild Curve/Surface
-Offset Curve On Surface
Thanks so much!
-Sky
Steve Baer
07-22-2010, 04:46 PM
Hi Sky,
TrimCurve, SplitCurve, and RebuildCurve are now included in the curve.py at
http://code.google.com/p/rhinopython/source/browse/trunk/scripts/rhinoscript/curve.py
OffsetCurveOnSurface should already be available in the latest WIP.
RebuildSurface in on the wishlist. It requires some additions that I need to make beyond just updating the python scripts so it will have to wait until a future WIP.
Thanks,
-Steve
Great, thanks so much Steve!
Now on to try to start implementing the rhino-common stuff. Any suggestions on how to parse the difficult tree of methods on the left side of the iron python window? Is there some type of "help file" similar to the rhino iron python help file that has all of the methods and their functionality? Its pretty tough to know which folder to expand to find a particular method and then to find what input/output etc. I have been going through the google doc files which has been pretty helpful as example code, any other suggestions?
Steve Baer
07-22-2010, 09:29 PM
There is the online help file for RhinoCommon at http://www.rhino3d.com/5/rhinocommon/
We haven't gotten to the point where we have any written examples of using RhinoCommon yet. Let me know if you would like to see any of the examples on our wiki (http://wiki.mcneel.com/developer/dotnetplugins) translated into a RhinoCommon version.
Another way to see how RhinoCommon is used is to look at the rhinoscript functions. These are all python functions that use RhinoCommon internally. Write a script, add a breakpoint, and step into one of the rhinoscript functions.
Thanks,
-Steve
DiegoPinochet
07-26-2010, 02:05 PM
There is the online help file for RhinoCommon at http://www.rhino3d.com/5/rhinocommon/
We haven't gotten to the point where we have any written examples of using RhinoCommon yet. Let me know if you would like to see any of the examples on our wiki (http://wiki.mcneel.com/developer/dotnetplugins) translated into a RhinoCommon version.
Another way to see how RhinoCommon is used is to look at the rhinoscript functions. These are all python functions that use RhinoCommon internally. Write a script, add a breakpoint, and step into one of the rhinoscript functions.
Thanks,
-Steve
thatīs the exact thing im doing to understand how rhinocommon works. i hooe we can see some examples in the near future.
Steve Baer
07-27-2010, 12:37 AM
Hi Diego,
I just started placing examples in the RhinoCommon help pages (actually there is only one example so far!)
http://www.rhino3d.com/5/rhinocommon/html/M_Rhino_Geometry_BoundingBox__ctor.htm
Please let me know if there are other examples you would like to see that use RhinoCommon.
Thanks,
-Steve
evertamador
07-29-2010, 02:11 PM
Hi Steve,
Would it be possible to see the Orienting Objects on a Surface example using RhinoCommon.
Thanks a lot in advance
Evert
Steve Baer
07-30-2010, 03:44 PM
Hi Evert,
Here ya go
http://www.rhino3d.com/5/rhinocommon/html/M_Rhino_Geometry_Transform_PlaneToPlane.htm
The example code is based on the wiki example for the older Rhino.NET and C++ SDK
http://wiki.mcneel.com/developer/sdksamples/orientonsrf
Thanks,
-Steve
Powered by vBulletin™ Version 4.0.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.