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

NameTypeAccessDescription
ControlPointsIArrayList<Vector4>ReadGets the control points.
VisibleboolRead/WriteGets or sets the visible.
SegmentsIList<int[]>ReadGets the segments.
ColorVector3Read/WriteGets or sets the color.
ExcludedboolRead/WriteGets or sets the excluded.
ParentNodesList<Node>ReadGets the parent nodes.
ParentNodeNodeRead/WriteGets or sets the parent node.
SceneSceneReadGets the scene.
NamestringRead/WriteGets or sets the name.
PropertiesPropertyCollectionReadGets the properties.

méthodes

SignatureDescription
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
 Français