Properties
IsReimplementation
#Gets whether or not this assistant is a type-safe re-implementation of a more generic assistant.
Name
#Gets the (singular) name of this type as meant for human consumption. I.e. "point", "number", "boolean", etc.
ZupportsRoundTripping
#Gets whether this assistant supports round-tripping from T to string to T. For this to be true, both Format(object) and Parse(string, string, IPear) must be implemented.
ZupportsTransformBox
#Gets whether this type assistant has support for transform aligned bounding boxes.
Methods
Area
#Measure the area of an instance.
AreaCentroid
#Measure the area of an instance.
BoundingBox
#Gets the world aligned boundingbox for an instance.
Parameters:
| instance (object) | Instance to measure. |
Returns: BoundingBox.
ClosestPoint
#Gets the point on an instance closest to a locus point.
Copy
#Create an exact duplicate of an instance.
Parameters:
| instance (object) | Instance to duplicate. |
Returns: Duplicate.
Deform
#Morph an instance of T.
Parameters:
| instance (object) | Instance to morph. |
| morph (SpaceMorph) | Morping class. |
Returns: Morphed object.
DescribePrimary
#Give the primary description of a value. This does not need to yield a parsable string, the results are meant only for human consumption.
Parameters:
| pear (IPear) | Pear to describe. |
DescribeSecondary
#Give the secondary description of a value. The secondary description may elaborate on the value. This method may always return null.
Parameters:
| pear (IPear) | Pear th describe. |
Draw
#Add a shape to a display bag.
Parameters:
| pear (IPear) | (value, meta) pear to display. |
| bag (DisplayBag) | Bag to populate. |
Format
#Format an instance so that it yields parsable text.
Parameters:
| instance (object) | Instance to format. |
FurthestPoint
#Gets the point on an instance furthest away from a locus point.
Hash
#Hash an instance of the object. The default implementation calls GetHash() on the instance.
Parameters:
| instance (object) |
Length
#Measure the length of an instance.
Link
#Update a pear which contains reference meta data.
Parameters:
| existing (IPear) | Pear with referencing meta data. |
| relinked (out IPear) | The updated copy if the result is LinkResult.Relinked, otherwise the existing pear. |
| document (RhinoDoc) | Rhino document to search. |
Returns: Whether the pear was relinked, was unchanged, or could not be relinked.
ModifyBakeAttributes
#By overriding this method, the type implementor may add modifications to the attributes of objects baked to Rhino files. For example, vectors when baked require an arrowhead to be set at the curve end, and this must be specified via the object attributes.
Parameters:
| pear (IPear) | The pear associated with the attributes. |
| file (File3dm) | The Rhino 3dm file into which the geometry will be baked. |
| initial (ObjectAttributes) | The attributes to be used. |
Returns: Modified attributes.
ModifyBakeAttributes
#By overriding this method, the type implementor may add modifications to the attributes of objects baked to Rhino documents. For example, vectors when baked require an arrowhead to be set at the curve end, and this must be specified via the object attributes.
Parameters:
| pear (IPear) | The pear associated with the attributes. |
| document (RhinoDoc) | The Rhino document into which the geometry will be baked. |
| initial (ObjectAttributes) | The attributes to be used. |
Returns: Modified attributes.
Parse
#Parse a text representation with an optional pre-existing value.
Pick
#Ask the user to specify (or pick) a new value. When this method is invoked, it is assumed that it will start a RhinoGet operation or otherwise pop some kind of UI on the screen.
Read
#Read an instance from a GrasshopperIO archive.
Same
#Compare two instances for equality.
Show
#Create a Grasshopper display proxy.
Parameters:
| pear (IPear) | (value, meta) pear to display. |
Returns: Display proxy.
Sort
#Compare the sort order of two instances.
Test
#Determine the validity of an instance.
Test
#Determine the validity of an instance.
Parameters:
| instance (object) | Instance. |
Returns: True if the instance is valid, false if otherwise.
Text
#Create a Prose.Text which can function as a comparison stand-in for this value for the purposes of sorting. Particularly when it comes to sorting values of different types.
Parameters:
| instance (object) | Instance. |
ToGeometry
#Convert a pear into a collection of Rhino compliant geometries. This is used primarily for the standard baking of geometric data.
Parameters:
| pear (IPear) | Pear to convert. |
Returns: A collection of zero or more Rhino document compliant shapes.
Transform
#Transform an instance of T.
Volume
#Measure the volume of an instance.
VolumeCentroid
#Measure the volume of an instance.
Write
#Write an instance to a GrasshopperIO archive.