C# Class Estimator.EstimatorHelpers

ファイルを表示 Open project: mcneel/Rhino4Samples_DotNet Class Usage Examples

Public Methods

Method 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

Method 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 method

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
return bool

GetArea() public static method

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

GetData() public static method

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
return int

GetKey() public static method

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

GetLength() public static method

Calculates the length of an object
public static GetLength ( IRhinoObject obj ) : double
obj IRhinoObject
return double

GetVolume() public static method

Calculates the volume of an object
public static GetVolume ( IRhinoObject obj ) : double
obj IRhinoObject
return double

RemoveAllData() public static method

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

RemoveData() public static method

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
return bool

SetData() public static method

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
return bool