Line
Overview
Line 是一个类在Aspose.3D FOSS的.NET中. 继承人: Curve, INamedObject.
多线是由一组具有段的点定义,并通过边缘连接的一条路径,这意味着它也可以是一个连通的线段集合.直线通常是一种线性对象,意思是不能用来表示曲线,为了表示一个曲率,使用NurbsCurve.
本类提供了在.NET 程序中使用 Line 对象的12种方法. 有的方法包括: A3DObject, Entity, FindProperty, FromPoints, GetBoundingBox, GetEntityRendererKey, GetProperty, Line, MakeDefaultIndices, RemoveProperty, SceneObject, SetProperty. 所有公众成员在安装了Aspose.3D FOSS for .NET 包后,可以访问任何.NET应用程序. 特性: Color, ControlPoints, Excluded, Name, ParentNode, ParentNodes,另外还有4个.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
ControlPoints | IArrayList<Vector4> | Read | 得到控制点. |
Visible | bool | 阅读/写作 | 得到或设置可见. |
Segments | IList<int[]> | Read | 得到了部分. |
Color | Vector3 | 阅读/写作 | 得到或设置颜色. |
Excluded | bool | 阅读/写作 | 得到或设置排除. |
ParentNodes | List<Node> | Read | 得到了父节点. |
ParentNode | Node | 阅读/写作 | 获取或设置父节点. |
Scene | Scene | Read | 得到了现场. |
Name | string | 阅读/写作 | 得到或设置名字. |
Properties | PropertyCollection | Read | 得到了房地产. |
Methods
| Signature | Description |
|---|---|
Line() | |
Line(name: string) | |
MakeDefaultIndices() | 生成序列0,1,2,3…..长度-1这样的 ControlPoints 可以作为一个单行使用 |
FromPoints(points: Vector3[]) | 从点创建一个行. |
GetEntityRendererKey() | 获取在表现器中注册的实体表达器密钥. |
Entity(name: string) | |
GetBoundingBox() | 得到当前实体在物空间坐标系中的界定框. |
SceneObject(name: string) | |
A3DObject() | |
RemoveProperty(property: Property) | 删除动态属性. |
GetProperty(property: string) | 获取指定属性的值. |
SetProperty(property: string, value: object?) | 设置指定属性的值 |
FindProperty(propertyName: string) | 找到属性. 它可以是动态属性的 (由 CreateDynamicProperty/SetProperty创建) 或本地属的 ((以其名称识别) |