Why does my loft kiink?
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
Why does my loft kiink?
Hello,
I'm trying to make a curved handrail for stairs, and playing around with the loft tool to do this as it seems the natural way. However, in my first attempt I get an odd kink in the handrail and don't really know why. Could anyone explain how I can avoid this kind of thing? Picture sown below, and fcstd file attached.
Incidentally, what I ultimately want to achieve is http://www.thisiscarpentry.com/2011/11/ ... -handrail/
OS: Linux Mint 17.3 Rosa
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6707 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 5465bc47c95db45e0be85dc0e2872419efadce0f
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
I'm trying to make a curved handrail for stairs, and playing around with the loft tool to do this as it seems the natural way. However, in my first attempt I get an odd kink in the handrail and don't really know why. Could anyone explain how I can avoid this kind of thing? Picture sown below, and fcstd file attached.
Incidentally, what I ultimately want to achieve is http://www.thisiscarpentry.com/2011/11/ ... -handrail/
OS: Linux Mint 17.3 Rosa
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6707 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 5465bc47c95db45e0be85dc0e2872419efadce0f
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
- Attachments
-
- test_handrail_loft.fcstd
- (24.68 KiB) Downloaded 63 times
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Why does my loft kiink?
Hi!
Similar behavior of loft has been reported before. There is not much that can be done about it. Please try Sweep instead.
Similar behavior of loft has been reported before. There is not much that can be done about it. Please try Sweep instead.
Re: Why does my loft kiink?
DeepSOIC wrote:Hi!
Similar behavior of loft has been reported before. There is not much that can be done about it. Please try Sweep instead.
I've tried sweep, and I'm pretty sure it can't work, as you cannot control the rotation of the profile during the sweep. When you sweep the handrail profile around the 180 degree turn of the path the handrail follows, the 2D profile ends up on it's side, i.e. the handrail ends up twisted 90 degrees around it's own axis (I've tried both isFrenet=True and False). Sweep will therefore only work for a circular profile.
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Why does my loft kiink?
Yeah, no luck so far...
Although, I'm pretty sure people will be amazed if you build this bit of modern art instead
Although, I'm pretty sure people will be amazed if you build this bit of modern art instead
Re: Why does my loft kiink?
I think I will struggle to get that through building control as a handrail here in the UKDeepSOIC wrote:Yeah, no luck so far...
Although, I'm pretty sure people will be amazed if you build this bit of modern art instead
Re: Why does my loft kiink?
I succeeded in doing this in salome which also uses openCASCADE, so it is possible:
- microelly2
- Veteran
- Posts: 4688
- Joined: Tue Nov 12, 2013 4:06 pm
- Contact:
Re: Why does my loft kiink?
The better way thna Loft/Sweep is to interpolate a BSpline Surface over the ribs:
Code: Select all
apts=[]
for s in Gui.Selection.getSelection():
print s.Label
w=s.Shape.Wires[0]
pts=w.discretize(50)
apts.append(pts)
bs=Part.BSplineSurface()
bs.interpolate(apts)
Part.show(bs.toShape())
- Attachments
-
- bp_462.png (58.52 KiB) Viewed 2676 times
Re: Why does my loft kiink?
Ich versuch grad' in 0.17 eine Skizze in zwei Ebenen zu machen und scheitere da noch kläglich.
Weiß einer wie ich das angehe?
Konkret ist die Aufgabe einen Bügel für ein Bimini (Sonnenverdeck auf einer Segelyacht) so zu biegen, daß der obere Bügel senkrecht steht, die seitlichen Kurven und Stützen aber in einem Winkel von 15° nach unten gehen.
Soll dann so ähnlich aussehen, aber eben durchgehende Rohre haben:
Es geht um den grün markierten Bügel und den Knich oben!
Gruß
Armin
Weiß einer wie ich das angehe?
Konkret ist die Aufgabe einen Bügel für ein Bimini (Sonnenverdeck auf einer Segelyacht) so zu biegen, daß der obere Bügel senkrecht steht, die seitlichen Kurven und Stützen aber in einem Winkel von 15° nach unten gehen.
Soll dann so ähnlich aussehen, aber eben durchgehende Rohre haben:
Es geht um den grün markierten Bügel und den Knich oben!
Gruß
Armin
Wer einen Rechtschreibfehler findet, kann ihn behalten
Re: Why does my loft kiink?
@crobar, I think you've made it too complicated. The plan view is a circle so the Sweep Path would be that portion of the ellipse between the inclined tangents of the handrail:
You could make 3 line segments (one line segment from tangent to tangent on the ellipse plane, and another two segments from the endpoints of this segment to the midpoint of that portion of the ellipse between these points on what will be the (arc of) ellipse plane. Use Part WB to make a Face from these 3 edges (tick Planar to True), then use Part WB > Extrude (tick Make Solid to True) and Extrude the plane downwards to create a solid. Change to the Part Design WB, create a Sketch of the top face of this Extrude, and Sketcher an Arc of Ellipse on the Extrude. You can use Link To External Geometry and make the endpoints of the 3 edges lie on the Arc of Ellipse. This will be the curved portion of the Sweep Path.
You would only need to use one cross-section of the handrail profile. It would probably be easiest to correctly locate it at the end of a straight length of the handrail, then create the Sweep (tick Make Solid and Frenet to True). This should make for a smooth Sweep.
This off the top of my head so I hope that makes sense.
You could make 3 line segments (one line segment from tangent to tangent on the ellipse plane, and another two segments from the endpoints of this segment to the midpoint of that portion of the ellipse between these points on what will be the (arc of) ellipse plane. Use Part WB to make a Face from these 3 edges (tick Planar to True), then use Part WB > Extrude (tick Make Solid to True) and Extrude the plane downwards to create a solid. Change to the Part Design WB, create a Sketch of the top face of this Extrude, and Sketcher an Arc of Ellipse on the Extrude. You can use Link To External Geometry and make the endpoints of the 3 edges lie on the Arc of Ellipse. This will be the curved portion of the Sweep Path.
You would only need to use one cross-section of the handrail profile. It would probably be easiest to correctly locate it at the end of a straight length of the handrail, then create the Sweep (tick Make Solid and Frenet to True). This should make for a smooth Sweep.
This off the top of my head so I hope that makes sense.
Re: Why does my loft kiink?
Note that the OCC version used in your FreeCAD version is now very old and is also OCE. Does your Salome use the same version?crobar wrote:I succeeded in doing this in salome which also uses openCASCADE, so it is possible:
Screenshott-salome.png
Another related tip....also there are different transition types in the sweep properties, they only apply if the path had non tangent joints.