- Ellipse introduction button via (center,majaxis extreme, a point in edge), ellipse is always CCW so that Z axis goes in the positive direction of the sketch - Backwards compatibility with files of previous versions of ellipse not defining a phi angle - Art by Jim (all the icons you see and the XPMs shown on creation of an ellipse) - Element Widget support for ellipses - Box selection for ellipses - Point on Ellipse constraint based on the gardener's method based on Ulrich's function proposal (radcan simplified, i.e. with simplify_radical sage function) - Tangent: Ellipse to Line based on DeepSOIC's geometric formulation (radcan simplified) Sketcher New Feature: Internal Alignment Constraint - The element to which internal alignment is applied has to be selected last. - All other elements are added in the order of priority, taking into account existing elements - Art by Jim (beautiful icons). Sketcher New Feature: Tool to show/hide/restore the internal geometry of an element - New functionality for show/hide internal geometry: toggles between hiding all unused internal geometry elements and showing all internal geometry. The restore function is implicit to the showing all internal geometry Sketcher New Feature: Arc of Ellipse support - Part::Geometry + Python implementation - ArcOfEllipse creation method - Art by Jim (all the icons you see and the XPMs shown on creation of arc of ellipse elements) - Sketcher Element widget for ArcOfEllipse. Bug fix: Select elements associated to constraints works now for foci internal alignment constraints
98 lines
3.5 KiB
XML
98 lines
3.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
|
<PythonExport
|
|
Father="GeometryCurvePy"
|
|
Name="EllipsePy"
|
|
Twin="GeomEllipse"
|
|
TwinPointer="GeomEllipse"
|
|
Include="Mod/Part/App/Geometry.h"
|
|
Namespace="Part"
|
|
FatherInclude="Mod/Part/App/GeometryCurvePy.h"
|
|
FatherNamespace="Part"
|
|
Constructor="true">
|
|
<Documentation>
|
|
<Author Licence="LGPL" Name="Werner Mayer" EMail="wmayer@users.sourceforge.net" />
|
|
<UserDocu>Describes an ellipse in 3D space
|
|
To create an ellipse there are several ways:
|
|
Part.Ellipse()
|
|
Creates an ellipse with major radius 2 and minor radius 1 with the
|
|
center in (0,0,0)
|
|
|
|
Part.Ellipse(Ellipse)
|
|
Create a copy of the given ellipse
|
|
|
|
Part.Ellipse(S1,S2,Center)
|
|
Creates an ellipse centered on the point Center, where
|
|
the plane of the ellipse is defined by Center, S1 and S2,
|
|
its major axis is defined by Center and S1,
|
|
its major radius is the distance between Center and S1, and
|
|
its minor radius is the distance between S2 and the major axis.
|
|
|
|
Part.Ellipse(Center,MajorRadius,MinorRadius)
|
|
Creates an ellipse with major and minor radii MajorRadius and
|
|
MinorRadius, and located in the plane defined by Center and
|
|
the normal (0,0,1)
|
|
</UserDocu>
|
|
</Documentation>
|
|
<Attribute Name="MajorRadius" ReadOnly="false">
|
|
<Documentation>
|
|
<UserDocu>The major radius of the ellipse.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="MajorRadius" Type="Float"/>
|
|
</Attribute>
|
|
<Attribute Name="MinorRadius" ReadOnly="false">
|
|
<Documentation>
|
|
<UserDocu>The minor radius of the ellipse.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="MinorRadius" Type="Float"/>
|
|
</Attribute>
|
|
<Attribute Name="AngleXU" ReadOnly="false">
|
|
<Documentation>
|
|
<UserDocu>The angle between the X axis and the major axis of the ellipse.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="AngleXU" Type="Float"/>
|
|
</Attribute>
|
|
<Attribute Name="Eccentricity" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>The eccentricity of the ellipse.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Eccentricity" Type="Float"/>
|
|
</Attribute>
|
|
<Attribute Name="Focal" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>The focal distance of the ellipse.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Focal" Type="Float"/>
|
|
</Attribute>
|
|
<Attribute Name="Focus1" ReadOnly="true">
|
|
<Documentation>
|
|
<UserDocu>The first focus is on the positive side of the major axis of the ellipse;
|
|
the second focus is on the negative side.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Focus1" Type="Object"/>
|
|
</Attribute>
|
|
<Attribute Name="Focus2" ReadOnly="true">
|
|
<Documentation>
|
|
<Documentation>
|
|
<UserDocu>The first focus is on the positive side of the major axis of the ellipse;
|
|
the second focus is on the negative side.
|
|
</UserDocu>
|
|
</Documentation>
|
|
</Documentation>
|
|
<Parameter Name="Focus2" Type="Object"/>
|
|
</Attribute>
|
|
<Attribute Name="Center" ReadOnly="false">
|
|
<Documentation>
|
|
<UserDocu>Center of the ellipse.</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Center" Type="Object"/>
|
|
</Attribute>
|
|
<Attribute Name="Axis" ReadOnly="false">
|
|
<Documentation>
|
|
<UserDocu>The axis direction of the circle</UserDocu>
|
|
</Documentation>
|
|
<Parameter Name="Axis" Type="Object"/>
|
|
</Attribute>
|
|
</PythonExport>
|
|
</GenerateModel>
|