C# Класс Estimator.EstimatorHelpers

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

AddData() публичный статический Метод

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
Результат bool

GetArea() публичный статический Метод

Calculates the area of an object
public static GetArea ( IRhinoObject obj, double tol ) : double
obj IRhinoObject
tol double
Результат double

GetData() публичный статический Метод

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
Результат int

GetKey() публичный статический Метод

Returns the string key to use when accessing an object's attribute user string data.
public static GetKey ( ) : string
Результат string

GetLength() публичный статический Метод

Calculates the length of an object
public static GetLength ( IRhinoObject obj ) : double
obj IRhinoObject
Результат double

GetVolume() публичный статический Метод

Calculates the volume of an object
public static GetVolume ( IRhinoObject obj ) : double
obj IRhinoObject
Результат double

RemoveAllData() публичный статический Метод

Removes all string data object's attribute user string data.
public static RemoveAllData ( IRhinoObject obj ) : bool
obj IRhinoObject
Результат bool

RemoveData() публичный статический Метод

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
Результат bool

SetData() публичный статический Метод

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
Результат bool