Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9fc7709969 |
@@ -194,7 +194,7 @@ jobs:
|
||||
|
||||
- name: Setup .NET 10 SDK
|
||||
if: runner.os == 'Windows'
|
||||
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # v5.2.0
|
||||
uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5.1.0
|
||||
with:
|
||||
dotnet-version: '10.0.103'
|
||||
|
||||
|
||||
@@ -325,7 +325,6 @@ SET(PathPythonPostScripts_SRCS
|
||||
Path/Post/scripts/gcode_pre.py
|
||||
Path/Post/scripts/generic_post.py
|
||||
Path/Post/scripts/generic_plasma_post.py
|
||||
Path/Post/scripts/grbl_post.py
|
||||
Path/Post/scripts/heidenhain_legacy_post.py
|
||||
Path/Post/scripts/linuxcnc_post.py
|
||||
Path/Post/scripts/linuxcnc_legacy_post.py
|
||||
|
||||
@@ -54,6 +54,8 @@ Defaults = Dict[str, bool]
|
||||
Values = Dict[str, Any]
|
||||
Visible = Dict[str, bool]
|
||||
|
||||
POST_TYPE = "machine"
|
||||
|
||||
|
||||
class Grbl(PostProcessor):
|
||||
"""The Grbl post processor class."""
|
||||
|
||||
@@ -195,15 +195,6 @@ class BSplineCurve(BoundedCurve):
|
||||
"""
|
||||
...
|
||||
|
||||
@constmethod
|
||||
def split(self, u: float, tolerance: float = 0.0, /) -> tuple[BSplineCurve, BSplineCurve]:
|
||||
"""
|
||||
split(u, tolerance=0.0)
|
||||
|
||||
Splits this B-Spline curve at parameter u and returns the two resulting curves.
|
||||
"""
|
||||
...
|
||||
|
||||
def setKnot(self, knot: float, index: int, /) -> None:
|
||||
"""
|
||||
Set a knot of the B-Spline curve.
|
||||
|
||||
@@ -327,26 +327,6 @@ PyObject* BSplineCurvePy::segment(PyObject* args)
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* BSplineCurvePy::split(PyObject* args) const
|
||||
{
|
||||
double u {};
|
||||
double tolerance = 0.0;
|
||||
if (!PyArg_ParseTuple(args, "d|d", &u, &tolerance)) {
|
||||
return nullptr;
|
||||
}
|
||||
try {
|
||||
auto curves = getGeomBSplineCurvePtr()->split(u, tolerance);
|
||||
Py::Tuple tuple(2);
|
||||
tuple.setItem(0, Py::asObject(std::get<0>(curves)->getPyObject()));
|
||||
tuple.setItem(1, Py::asObject(std::get<1>(curves)->getPyObject()));
|
||||
return Py::new_reference_to(tuple);
|
||||
}
|
||||
catch (Standard_Failure& e) {
|
||||
PyErr_SetString(PartExceptionOCCError, e.GetMessageString());
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
PyObject* BSplineCurvePy::setKnot(PyObject* args)
|
||||
{
|
||||
int Index, M = -1;
|
||||
|
||||
@@ -1711,18 +1711,6 @@ bool GeomBSplineCurve::join(const Handle(Geom_BoundedCurve) & other)
|
||||
return true;
|
||||
}
|
||||
|
||||
std::tuple<GeomBSplineCurvePtr, GeomBSplineCurvePtr> GeomBSplineCurve::split(double u, double tol) const
|
||||
{
|
||||
Handle(Geom_BSplineCurve) curveL
|
||||
= GeomConvert::SplitBSplineCurve(myCurve, myCurve->FirstParameter(), u, tol, true);
|
||||
Handle(Geom_BSplineCurve) curveR
|
||||
= GeomConvert::SplitBSplineCurve(myCurve, u, myCurve->LastParameter(), tol, true);
|
||||
return std::make_tuple(
|
||||
std::make_shared<GeomBSplineCurve>(curveL),
|
||||
std::make_shared<GeomBSplineCurve>(curveR)
|
||||
);
|
||||
}
|
||||
|
||||
void GeomBSplineCurve::interpolate(const std::vector<gp_Pnt>& p, Standard_Boolean periodic)
|
||||
{
|
||||
if (p.size() < 2) {
|
||||
|
||||
@@ -311,7 +311,6 @@ private:
|
||||
Handle(Geom_BezierCurve) myCurve;
|
||||
};
|
||||
|
||||
using GeomBSplineCurvePtr = std::shared_ptr<GeomBSplineCurve>;
|
||||
class PartExport GeomBSplineCurve: public GeomBoundedCurve
|
||||
{
|
||||
TYPESYSTEM_HEADER_WITH_OVERRIDE();
|
||||
@@ -378,7 +377,6 @@ public:
|
||||
void setPeriodic() const;
|
||||
bool isRational() const;
|
||||
bool join(const Handle(Geom_BoundedCurve) &);
|
||||
std::tuple<GeomBSplineCurvePtr, GeomBSplineCurvePtr> split(double u, double tol) const;
|
||||
void makeC1Continuous(double, double);
|
||||
std::list<Geometry*> toBiArcs(double tolerance) const;
|
||||
|
||||
|
||||
@@ -22,9 +22,6 @@
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="checkBooleanCheck">
|
||||
<property name="toolTip">
|
||||
<string>Runs a geometry validity check automatically after each Part boolean operation</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Automatically check model after boolean operation</string>
|
||||
</property>
|
||||
@@ -41,9 +38,6 @@
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="checkBooleanRefine">
|
||||
<property name="toolTip">
|
||||
<string>Automatically refines the shape after each Part boolean operation to remove residual edges and faces</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Automatically refine model after boolean operation</string>
|
||||
</property>
|
||||
@@ -60,9 +54,6 @@
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="checkSketchBaseRefine">
|
||||
<property name="toolTip">
|
||||
<string>Automatically refines Part Design features to remove residual edges and faces</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Automatically refine model after applying operations</string>
|
||||
</property>
|
||||
@@ -79,9 +70,6 @@
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="checkAllowCompoundBody">
|
||||
<property name="toolTip">
|
||||
<string>Enables the multiple-solids Body option by default for newly created Part Design bodies</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Allow multiple solids in Part Design bodies by default</string>
|
||||
</property>
|
||||
@@ -113,9 +101,6 @@
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="checkObjectNaming">
|
||||
<property name="toolTip">
|
||||
<string>Currently not implemented: this option does not yet modify automatically generated Part feature names</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Add name of base object</string>
|
||||
</property>
|
||||
@@ -146,9 +131,6 @@
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="toolTip">
|
||||
<string>Specifies which profile geometry types are accepted by the Part Design Hole feature</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Default profile type for holes</string>
|
||||
</property>
|
||||
@@ -156,9 +138,6 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Gui::PrefComboBox" name="comboDefaultProfileTypeForHole">
|
||||
<property name="toolTip">
|
||||
<string>Specifies which profile geometry types are accepted by the Part Design Hole feature</string>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>1</number>
|
||||
</property>
|
||||
@@ -223,9 +202,6 @@
|
||||
<layout class="QVBoxLayout" name="verticalLayout_31">
|
||||
<item>
|
||||
<widget class="Gui::PrefCheckBox" name="checkShowFinalPreview">
|
||||
<property name="toolTip">
|
||||
<string>Shows the final computed shape by default while editing Part Design features</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show final result by default when editing features</string>
|
||||
</property>
|
||||
@@ -239,9 +215,6 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Gui::PrefCheckBox" name="checkShowTransparentPreview">
|
||||
<property name="toolTip">
|
||||
<string>Displays a temporary transparent overlay preview while editing Part Design features</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show transparent preview overlay by default when editing features</string>
|
||||
</property>
|
||||
@@ -258,9 +231,6 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Gui::PrefCheckBox" name="checkShowProfilePreview">
|
||||
<property name="toolTip">
|
||||
<string>Highlights the sketch or profile geometry used by the feature currently being edited</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Highlight the profile used to create features</string>
|
||||
</property>
|
||||
@@ -302,9 +272,6 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Gui::PrefCheckBox" name="enableGizmos">
|
||||
<property name="toolTip">
|
||||
<string>Enables draggers for interactive editing of supported feature parameters</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Show interactive draggers when editing features</string>
|
||||
</property>
|
||||
@@ -321,9 +288,6 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="Gui::PrefCheckBox" name="delayedGizmoUpdate">
|
||||
<property name="toolTip">
|
||||
<string>Delays recompute until dragging ends when using draggers, improving interaction speed</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Disable recompute while dragging</string>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user