Documentation RhinoCommon API

Python_III_RhinoCommon - Using Static Methods and Properties of RhinoCommon:


*When you write a type name e.g. "Point3d" and call the function ".method_name()" you are calling a static method*
 <br />

```python
from Rhino.Geometry import Point3d

p0 = Point3d(0,0,5)
p1 = Point3d(5,0,0)
point = Point3d.Add(p0,p1)

__________TASK__________ :

from Rhino.Geometry import Vector3d

v = Vector3d(0,0,1)
a = v.X
b = v.Length

v0 = Vector3d(0,0,1)
v1 = Vector3d(0,1,0)
c = Vector3d.VectorAngle(v0,v1)


Similar thing exists for properties and you use it very often, e.g. for constructing a point on the origin:


from Rhino.Geometry import Point3d

point = Point3d.Origin


Or declaring a vector that points in the Z-Axis


from Rhino.Geometry import Vector3d

point = Vector3d.ZAxis