Part: Enable solid creation by default for Loft and Sweep (#22098)
* Part: Update PartFeatures.cpp * Part: Update DlgRevolution.ui * Part: Update TaskLoft.ui * Part: Update TaskSweep.ui * Part: Update PartFeatures.cpp * Update src/Mod/Part/Gui/DlgRevolution.ui --------- Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>
This commit is contained in:
@@ -177,7 +177,7 @@ Loft::Loft()
|
||||
{
|
||||
ADD_PROPERTY_TYPE(Sections, (nullptr), "Loft", App::Prop_None, "List of sections");
|
||||
Sections.setSize(0);
|
||||
ADD_PROPERTY_TYPE(Solid, (false), "Loft", App::Prop_None, "Create solid");
|
||||
ADD_PROPERTY_TYPE(Solid, (true), "Loft", App::Prop_None, "Create solid");
|
||||
ADD_PROPERTY_TYPE(Ruled, (false), "Loft", App::Prop_None, "Ruled surface");
|
||||
ADD_PROPERTY_TYPE(Closed, (false), "Loft", App::Prop_None, "Close Last to First Profile");
|
||||
ADD_PROPERTY_TYPE(MaxDegree, (5), "Loft", App::Prop_None, "Maximum Degree");
|
||||
@@ -257,7 +257,7 @@ Sweep::Sweep()
|
||||
ADD_PROPERTY_TYPE(Sections, (nullptr), "Sweep", App::Prop_None, "List of sections");
|
||||
Sections.setSize(0);
|
||||
ADD_PROPERTY_TYPE(Spine, (nullptr), "Sweep", App::Prop_None, "Path to sweep along");
|
||||
ADD_PROPERTY_TYPE(Solid, (false), "Sweep", App::Prop_None, "Create solid");
|
||||
ADD_PROPERTY_TYPE(Solid, (true), "Sweep", App::Prop_None, "Create solid");
|
||||
ADD_PROPERTY_TYPE(Frenet, (true), "Sweep", App::Prop_None, "Frenet");
|
||||
ADD_PROPERTY_TYPE(Transition, (long(1)), "Sweep", App::Prop_None, "Transition mode");
|
||||
ADD_PROPERTY_TYPE(Linearize,(false), "Sweep", App::Prop_None,
|
||||
|
||||
@@ -22,6 +22,9 @@
|
||||
<property name="text">
|
||||
<string>Create solid</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
|
||||
@@ -52,6 +52,9 @@
|
||||
<property name="text">
|
||||
<string>Create solid</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
|
||||
@@ -106,6 +106,7 @@ TEST_F(PartFeaturesTest, testSweep)
|
||||
auto _sweep = _doc->addObject<Sweep>();
|
||||
_sweep->Sections.setValues({_plane1});
|
||||
_sweep->Spine.setValue(_edge1);
|
||||
_sweep->Solid.setValue((false));
|
||||
// Act
|
||||
_sweep->execute();
|
||||
TopoShape ts = _sweep->Shape.getShape();
|
||||
|
||||
Reference in New Issue
Block a user