You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CurvedShapes.addObjectProperty(obj, "App::PropertyEnumeration", "Distribution", "CurvedArray", "Algorithm for distance between elements")
48
49
CurvedShapes.addObjectProperty(obj, "App::PropertyBool", "DistributionReverse", "CurvedArray", "Reverses direction of Distribution algorithm").DistributionReverse=DistributionReverse
49
50
CurvedShapes.addObjectProperty(obj, "App::PropertyInteger", "LoftMaxDegree", "CurvedArray", "Max Degree for Surface or Solid").LoftMaxDegree=LoftMaxDegree
51
+
CurvedShapes.addObjectProperty(obj,"App::PropertyInteger", "MaxLoftSize", "CurvedArray", "Max Size of a Loft in Segments.").MaxLoftSize=MaxLoftSize
CurvedShapes.addObjectProperty(fp, "App::PropertyInteger", "LoftMaxDegree", "CurvedArray", "Max Degree for Surface or Solid", init_val=5) # backwards compatibility - this upgrades older documents
198
+
ifnothasattr(fp, 'MaxLoftSize'):
199
+
CurvedShapes.addObjectProperty(fp,"App::PropertyInteger", "MaxLoftSize", "CurvedArray", "Max Size of a Loft in Segments.", init_val=-1) # backwards compatibility - this upgrades older documents
CurvedShapes.addObjectProperty(obj,"App::PropertyBool", "ScaleY","CurvedPathArray", "Scale by hullcurves in Y direction").ScaleY=True
45
46
CurvedShapes.addObjectProperty(obj,"App::PropertyBool", "ScaleZ","CurvedPathArray", "Scale by hullcurves in Z direction").ScaleZ=True
46
47
CurvedShapes.addObjectProperty(obj,"App::PropertyInteger", "LoftMaxDegree", "CurvedPathArray", "Max Degree for Surface or Solid").LoftMaxDegree=LoftMaxDegree
48
+
CurvedShapes.addObjectProperty(obj,"App::PropertyInteger", "MaxLoftSize", "CurvedPathArray", "Max Size of a Loft in Segments.").MaxLoftSize=MaxLoftSize
CurvedShapes.addObjectProperty(fp, "App::PropertyInteger", "LoftMaxDegree", "CurvedPathArray", "Max Degree for Surface or Solid", init_val=5) # backwards compatibility - this upgrades older documents
189
+
ifnothasattr(fp, 'MaxLoftSize'):
190
+
CurvedShapes.addObjectProperty(fp,"App::PropertyInteger", "MaxLoftSize", "CurvedPathArray", "Max Size of a Loft in Segments.", init_val=-1) # backwards compatibility - this upgrades older documents
CurvedShapes.addObjectProperty(fp,"App::PropertyEnumeration", "Distribution", "CurvedSegment", "Algorithm for distance between elements")
48
49
CurvedShapes.addObjectProperty(fp,"App::PropertyBool", "DistributionReverse", "CurvedSegment", "Reverses direction of Distribution algorithm").DistributionReverse=DistributionReverse
49
50
CurvedShapes.addObjectProperty(fp,"App::PropertyInteger", "LoftMaxDegree", "CurvedSegment", "Max Degree for Surface or Solid").LoftMaxDegree=LoftMaxDegree
51
+
CurvedShapes.addObjectProperty(fp,"App::PropertyInteger", "MaxLoftSize", "CurvedSegment", "Max Size of a Loft in Segments.").MaxLoftSize=MaxLoftSize
CurvedShapes.addObjectProperty(fp, "App::PropertyInteger", "LoftMaxDegree", "CurvedSegment", "Max Degree for Surface or Solid", init_val=5) # backwards compatibility - this upgrades older documents
109
+
ifnothasattr(fp, 'MaxLoftSize'):
110
+
CurvedShapes.addObjectProperty(fp,"App::PropertyInteger", "MaxLoftSize", "CurvedSegment", "Max Size of a Loft in Segments.", init_val=-1) # backwards compatibility - this upgrades older documents
Copy file name to clipboardexpand all lines: InterpolatedMiddle.py
+7-3
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,8 @@ def __init__(self,
28
28
InterpolationPoints=16,
29
29
Twist=0.0,
30
30
TwistReverse=False,
31
-
LoftMaxDegree=5):
31
+
LoftMaxDegree=5,
32
+
MaxLoftSize=16):
32
33
CurvedShapes.addObjectProperty(fp,"App::PropertyLink", "Shape1", "InterpolatedMiddle", "The first object of the segment").Shape1=shape1
33
34
CurvedShapes.addObjectProperty(fp,"App::PropertyLink", "Shape2", "InterpolatedMiddle", "The last object of the segment").Shape2=shape2
34
35
CurvedShapes.addObjectProperty(fp,"App::PropertyVector", "NormalShape1", "InterpolatedMiddle", "Direction axis of Shape1").NormalShape1=normalShape1
@@ -39,6 +40,7 @@ def __init__(self,
39
40
CurvedShapes.addObjectProperty(fp,"App::PropertyFloat", "Twist","InterpolatedMiddle", "Compensates a rotation between Shape1 and Shape2").Twist=Twist
40
41
CurvedShapes.addObjectProperty(fp,"App::PropertyBool", "TwistReverse","InterpolatedMiddle", "Reverses the rotation of one Shape").TwistReverse=TwistReverse
41
42
CurvedShapes.addObjectProperty(fp,"App::PropertyInteger", "LoftMaxDegree", "InterpolatedMiddle", "Max Degree for Surface or Solid").LoftMaxDegree=LoftMaxDegree
43
+
CurvedShapes.addObjectProperty(fp,"App::PropertyInteger", "MaxLoftSize", "InterpolatedMiddle", "Max Size of a Loft in Segments.").MaxLoftSize=MaxLoftSize
42
44
self.update=True
43
45
fp.Proxy=self
44
46
@@ -71,6 +73,8 @@ def execute(self, fp):
71
73
defonChanged(self, fp, prop):
72
74
ifnothasattr(fp, 'LoftMaxDegree'):
73
75
CurvedShapes.addObjectProperty(fp, "App::PropertyInteger", "LoftMaxDegree", "InterpolatedMiddle", "Max Degree for Surface or Solid", init_val=5) # backwards compatibility - this upgrades older documents
76
+
ifnothasattr(fp, 'MaxLoftSize'):
77
+
CurvedShapes.addObjectProperty(fp,"App::PropertyInteger", "MaxLoftSize", "InterpolatedMiddle", "Max Size of a Loft in Segments.", init_val=-1) # backwards compatibility - this upgrades older documents
74
78
75
79
76
80
defmakeRibs(self, fp):
@@ -96,9 +100,9 @@ def makeRibs(self, fp):
96
100
97
101
if (fp.makeSurfaceorfp.makeSolid) andlen(ribs) ==1:
0 commit comments