C# Class Estimator.EstimatorHelpers

Afficher le fichier Open project: mcneel/Rhino4Samples_DotNet Class Usage Examples

Méthodes publiques

Méthode Description
AddData ( IRhinoObject obj, string string_datum ) : bool

Adds a single string datum to an object's attribute user string data.

GetArea ( IRhinoObject obj, double tol ) : double

Calculates the area of an object

GetData ( IRhinoObject obj, string &string_array ) : int

Low level function to get an array of string data from an object's attribute user string data.

GetKey ( ) : string

Returns the string key to use when accessing an object's attribute user string data.

GetLength ( IRhinoObject obj ) : double

Calculates the length of an object

GetVolume ( IRhinoObject obj ) : double

Calculates the volume of an object

RemoveAllData ( IRhinoObject obj ) : bool

Removes all string data object's attribute user string data.

RemoveData ( IRhinoObject obj, string string_datum ) : bool

Removes a single string datum from an object's attribute user string data.

SetData ( IRhinoObject obj, string string_array ) : bool

Low level function to set an array of string data to an object's attribute user string data.

Private Methods

Méthode Description
GetBrepArea ( IOnBrep brep ) : double
GetBrepVolume ( IOnBrep brep ) : double
GetCurveArea ( IOnCurve crv, double tol ) : double
GetMeshArea ( IOnMesh mesh ) : double
GetMeshVolume ( IOnMesh mesh ) : double
GetSurfaceArea ( IOnSurface srf ) : double
GetSurfaceVolume ( IOnSurface srf ) : double

Method Details

AddData() public static méthode

Adds a single string datum to an object's attribute user string data.
public static AddData ( IRhinoObject obj, string string_datum ) : bool
obj IRhinoObject
string_datum string
Résultat bool

GetArea() public static méthode

Calculates the area of an object
public static GetArea ( IRhinoObject obj, double tol ) : double
obj IRhinoObject
tol double
Résultat double

GetData() public static méthode

Low level function to get an array of string data from an object's attribute user string data.
public static GetData ( IRhinoObject obj, string &string_array ) : int
obj IRhinoObject
string_array string
Résultat int

GetKey() public static méthode

Returns the string key to use when accessing an object's attribute user string data.
public static GetKey ( ) : string
Résultat string

GetLength() public static méthode

Calculates the length of an object
public static GetLength ( IRhinoObject obj ) : double
obj IRhinoObject
Résultat double

GetVolume() public static méthode

Calculates the volume of an object
public static GetVolume ( IRhinoObject obj ) : double
obj IRhinoObject
Résultat double

RemoveAllData() public static méthode

Removes all string data object's attribute user string data.
public static RemoveAllData ( IRhinoObject obj ) : bool
obj IRhinoObject
Résultat bool

RemoveData() public static méthode

Removes a single string datum from an object's attribute user string data.
public static RemoveData ( IRhinoObject obj, string string_datum ) : bool
obj IRhinoObject
string_datum string
Résultat bool

SetData() public static méthode

Low level function to set an array of string data to an object's attribute user string data.
public static SetData ( IRhinoObject obj, string string_array ) : bool
obj IRhinoObject
string_array string
Résultat bool