Ligne
Vue de l’ensemble
‘Line’ est une classe dans Aspose.3D FOSS pour .NET. hérite de: ‘Curve’, ‘INamedObject’.
Une polyline est un chemin définit par un ensemble de points avec des segments, et relié par les bords, ce qui signifie qu’il peut aussi être un certain nombre de segmences liées. La ligne est généralement un objet linéaire, cela signifiant qu’elle ne peut pas être utilisée pour représenter une courbe, afin de représente une curve, il utilise NurbsCurve.
Cette classe fournit 12 méthodes pour travailler avec les objets de ligne dans des programmes .NET. Les méthodologies disponibles comprennent : ‘A3DObject’, ‘Entity’, FindProperty', ‘FromPoints’, 'GetBoundingBox', ’GatEntitiRendererKey', ‚GitPoperty’, ‘Line, ‘MakeDefaultIndices’,‘RemoveProverty’ , ‘SceneObject et 'SetPropriété'. Tous les membres publics sont accessibles à n'importe quelle application .net après l'installation du package .Net Aspose.3D FOSS. Propriétés: 'Color', ''Control Points , Excluded’, ‘’Name’,‘‘ParentNode’,ParentsNodes et plus.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
ControlPoints | IArrayList<Vector4> | Read | Gets the control points. |
Visible | bool | Read/Write | Gets or sets the visible. |
Segments | IList<int[]> | Read | Gets the segments. |
Color | Vector3 | Read/Write | Gets or sets the color. |
Excluded | bool | Read/Write | Gets or sets the excluded. |
ParentNodes | List<Node> | Read | Gets the parent nodes. |
ParentNode | Node | Read/Write | Gets or sets the parent node. |
Scene | Scene | Read | Gets the scene. |
Name | string | Read/Write | Gets or sets the name. |
Properties | PropertyCollection | Read | Gets the properties. |
méthodes
| Signature | Description |
|---|---|
Line() | |
Line(name: string) | |
MakeDefaultIndices() | Generate the sequence 0,1,2,3…..Length-1 to so the ControlPoints can be used as a single line |
FromPoints(points: Vector3[]) | Creates a line from points |
GetEntityRendererKey() | Gets the key of the entity renderer registered in the renderer |
Entity(name: string) | |
GetBoundingBox() | Gets the bounding box of current entity in its object space coordinate system. |
SceneObject(name: string) | |
A3DObject() | |
RemoveProperty(property: Property) | Removes a dynamic property. |
GetProperty(property: string) | Get the value of specified property |
SetProperty(property: string, value: object?) | Sets the value of specified property |
FindProperty(propertyName: string) | Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name) |
Voir aussi
- Aspose.3D - référence API d’entreprise