AutoOpenVectors Module
This module provides functions to manipulate Rhino Vector3d This module is automatically opened when Rhino.Scripting.FSharp namespace is opened. These type extensions are only visible in F#.
Type extensions
Type extension |
Description
|
|
returns a point that is at a given distance from a point in the direction of another point.
Extended Type:
|
|
returns a Point by evaluating a line between two points with a normalized parameter. e.g. rel=0.5 will return the middle point, rel=1.0 the endPoint if the rel parameter is omitted it is set to 0.5
Extended Type:
|
Full Usage:
RhinoScriptSyntax.DrawPlane(pl, axLength, suffixInDot, layer)
Parameters:
Plane
-
(Plane)
axLength : float
-
(float) Optional, Default Value: 1.0 , the size of the drawn lines
suffixInDot : string
-
(string) Optional, Default Value: no suffix, text to add to x TextDot label do of x axis. And y and z too.
layer : string
-
(string) Optional, Default Value: the current layer, String for layer to draw plane on. The Layer will be created if it does not exist.
Returns: ResizeArray<Guid>
List of Guids of added Objects
|
Draws the axes of a Plane and adds TextDots to label them.
Extended Type:
|
|
|
|
Draws a line with Curve Arrows from World Origin.
Extended Type:
|
|
Returns the average of many points.
Extended Type:
|
|
Finds the mean normal of many points. It finds the center point and then takes cross-products iterating all points in pairs of two. The first two points define the orientation of the normal. Considers current order of points too, counterclockwise in xy plane is z.
Extended Type:
|
Full Usage:
RhinoScriptSyntax.OffsetPoints(points, offsetDistances, normalDistances, loop)
Parameters:
IList<Point3d>
-
List of points to offset. Auto detects if given points are from a closed Polyline (first point = last point) and loops them.
offsetDistances : float seq
-
Offset distances can vary per segment, Positive distance is offset inwards, negative outwards.
Distances Sequence must have exact count , be a singleton ( for repeating) or empty seq ( for ignoring)
normalDistances : float seq
-
Normal distances define a perpendicular offset at each corner.
Distances Sequence must have exact count , be a singleton ( for repeating) or empty seq ( for ignoring)
loop : bool
-
Consider last point and first point to be from a closed loop, even if they are not at the same location.
Returns: ResizeArray<Point3d>
A list of points that has the same length as the input list.
|
Offsets a Polyline in 3D space by finding the local offset in each corner.
Extended Type:
|
Offsets a Polyline in 3D space by finding the local offset in each corner. Positive distance is offset inwards, negative outwards. Normal distances define a perpendicular offset at each corner. Auto detects if given points are from a closed Polyline (first point = last point) and loops them. Auto detects points from closed polylines and loops them.
Extended Type:
|