Code: Select all
myObject.Vertexes[0].Point
What is a similar method for access the information stored in the Edge object?
I've searched though the TopoShape API but with no success.
Code: Select all
myObject.Vertexes[0].Point
Code: Select all
>>> lineSegment = Part.LineSegment()
>>> edge = lineSegment.toShape()
>>> edge.Curve
<Line object>
>>> edge.FirstParameter
0.0
>>> edge.LastParameter
1.0
>>> edge.Length
1.0
>>> edge.Orientation
'Forward'
>>> edge.ParameterRange
(0.0, 1.0)
>>> edge.firstVertex().Point
Vector (0.0, 0.0, 0.0)
>>> edge.lastVertex().Point
Vector (0.0, 0.0, 1.0)
DrBwts wrote:I'm using 0.16
Code: Select all
>>> line=Part.Line()
>>> edge=line.toShape()
>>> edge.FirstParameter
0.0
>>> edge.valueAt(edge.FirstParameter)
Vector (0.0, 0.0, 0.0)
>>> edge.LastParameter
1.0
>>> edge.valueAt(edge.LastParameter)
Vector (0.0, 0.0, 1.0)
I use the python consoleDrBwts wrote:a full list of attributes & methods