FreeCAD
1<?xml version="1.0" encoding="UTF-8"?>
2<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">3<PythonExport4Father="Curve2dPy"5Name="Line2dSegmentPy"6PythonName="Part.Geom2d.Line2dSegment"7Twin="Geom2dLineSegment"8TwinPointer="Geom2dLineSegment"9Include="Mod/Part/App/Geometry2d.h"10Namespace="Part"11FatherInclude="Mod/Part/App/Geom2d/Curve2dPy.h"12FatherNamespace="Part"13Constructor="true">14<Documentation>15<Author Licence="LGPL" Name="Werner Mayer" EMail="wmayer@users.sourceforge.net" />16<UserDocu>Describes a line segment in 2D space17To create a line there are several ways:
18Part.Geom2d.Line2dSegment()
19Creates a default line
20
21Part.Geom2d.Line2dSegment(Line)
22Creates a copy of the given line
23
24Part.Geom2d.Line2dSegment(Point1,Point2)
25Creates a line that goes through two given points</UserDocu>26</Documentation>27<Methode Name="setParameterRange">28<Documentation>29<UserDocu>Set the parameter range of the underlying line segment geometry</UserDocu>30</Documentation>31</Methode>32<Attribute Name="StartPoint" ReadOnly="false">33<Documentation>34<UserDocu>Returns the start point of this line segment.</UserDocu>35</Documentation>36<Parameter Name="StartPoint" Type="Object"/>37</Attribute>38<Attribute Name="EndPoint" ReadOnly="false">39<Documentation>40<UserDocu>Returns the end point of this line segment.</UserDocu>41</Documentation>42<Parameter Name="EndPoint" Type="Object"/>43</Attribute>44</PythonExport>45</GenerateModel>46