discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Please help with path extrusion

P
PYM
Mon, Jul 27, 2015 4:07 PM

Hello,

i havesome trouble making a brim for a vessel with a complex cross section
profile. I stumbled upon the sweep function and scad utils with has some
other additional functions, but i dont really know what code to use.

Can you please tell me which package i have to get to use the sweep
function?

Thanks a lot!

--
View this message in context: http://forum.openscad.org/Please-help-with-path-extrusion-tp13322.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hello, i havesome trouble making a brim for a vessel with a complex cross section profile. I stumbled upon the sweep function and scad utils with has some other additional functions, but i dont really know what code to use. Can you please tell me which package i have to get to use the sweep function? Thanks a lot! -- View this message in context: http://forum.openscad.org/Please-help-with-path-extrusion-tp13322.html Sent from the OpenSCAD mailing list archive at Nabble.com.
PF
Peter Falke
Mon, Jul 27, 2015 9:36 PM

Maybe you could post your vessel for us to have a look at.

The sweep path, as far  as I know, needs you to input the path as a
numerical expression.
This is probably not known for an arbitrary vessel.

2015-07-27 18:07 GMT+02:00 PYM pm@pixelyourmind.de:

Hello,

i havesome trouble making a brim for a vessel with a complex cross section
profile. I stumbled upon the sweep function and scad utils with has some
other additional functions, but i dont really know what code to use.

Can you please tell me which package i have to get to use the sweep
function?

Thanks a lot!

--
View this message in context:
http://forum.openscad.org/Please-help-with-path-extrusion-tp13322.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

--
stempeldergeschichte@googlemail.com karsten@rohrbach.de

P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist:
Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu
schreiben.
Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.

P.S. In case my e-mail is shorter than you enjoy:
I am currently trying short replies instead of no replies at all.
Please let me know, if you like to read more.

Enjoy!

Maybe you could post your vessel for us to have a look at. The sweep path, as far as I know, needs you to input the path as a numerical expression. This is probably not known for an arbitrary vessel. 2015-07-27 18:07 GMT+02:00 PYM <pm@pixelyourmind.de>: > Hello, > > i havesome trouble making a brim for a vessel with a complex cross section > profile. I stumbled upon the sweep function and scad utils with has some > other additional functions, but i dont really know what code to use. > > Can you please tell me which package i have to get to use the sweep > function? > > Thanks a lot! > > > > -- > View this message in context: > http://forum.openscad.org/Please-help-with-path-extrusion-tp13322.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > -- stempeldergeschichte@googlemail.com <karsten@rohrbach.de> P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist: Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu schreiben. Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen. P.S. In case my e-mail is shorter than you enjoy: I am currently trying short replies instead of no replies at all. Please let me know, if you like to read more. Enjoy!
JL
Joseph Lenox
Mon, Jul 27, 2015 9:42 PM

Use projection with cut=true (assuming the base of the object is at z=0),
then scale it out and linear_extrude up for the thickness you want. That
should get you close to what you want.

Keep it roughly equal to a single layer thickess (that your slicer would
use) or else you'll have more problems.

Frankly, brims are more easily added by the slicer in most cases (both Cura
and Slic3r will add brim gcode).

--Joseph Lenox

On Mon, Jul 27, 2015 at 4:36 PM, Peter Falke <
stempeldergeschichte@googlemail.com> wrote:

Maybe you could post your vessel for us to have a look at.

The sweep path, as far  as I know, needs you to input the path as a
numerical expression.
This is probably not known for an arbitrary vessel.

2015-07-27 18:07 GMT+02:00 PYM pm@pixelyourmind.de:

Hello,

i havesome trouble making a brim for a vessel with a complex cross section
profile. I stumbled upon the sweep function and scad utils with has some
other additional functions, but i dont really know what code to use.

Can you please tell me which package i have to get to use the sweep
function?

Thanks a lot!

--
View this message in context:
http://forum.openscad.org/Please-help-with-path-extrusion-tp13322.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

--
stempeldergeschichte@googlemail.com karsten@rohrbach.de

P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist:
Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu
schreiben.
Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.

P.S. In case my e-mail is shorter than you enjoy:
I am currently trying short replies instead of no replies at all.
Please let me know, if you like to read more.

Enjoy!


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

Use projection with cut=true (assuming the base of the object is at z=0), then scale it out and linear_extrude up for the thickness you want. That should get you close to what you want. Keep it roughly equal to a single layer thickess (that your slicer would use) or else you'll have more problems. Frankly, brims are more easily added by the slicer in most cases (both Cura and Slic3r will add brim gcode). --Joseph Lenox On Mon, Jul 27, 2015 at 4:36 PM, Peter Falke < stempeldergeschichte@googlemail.com> wrote: > Maybe you could post your vessel for us to have a look at. > > The sweep path, as far as I know, needs you to input the path as a > numerical expression. > This is probably not known for an arbitrary vessel. > > 2015-07-27 18:07 GMT+02:00 PYM <pm@pixelyourmind.de>: > >> Hello, >> >> i havesome trouble making a brim for a vessel with a complex cross section >> profile. I stumbled upon the sweep function and scad utils with has some >> other additional functions, but i dont really know what code to use. >> >> Can you please tell me which package i have to get to use the sweep >> function? >> >> Thanks a lot! >> >> >> >> -- >> View this message in context: >> http://forum.openscad.org/Please-help-with-path-extrusion-tp13322.html >> Sent from the OpenSCAD mailing list archive at Nabble.com. >> >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> > > > > -- > stempeldergeschichte@googlemail.com <karsten@rohrbach.de> > > P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist: > Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu > schreiben. > Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen. > > P.S. In case my e-mail is shorter than you enjoy: > I am currently trying short replies instead of no replies at all. > Please let me know, if you like to read more. > > Enjoy! > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > >
JL
Joseph Lenox
Mon, Jul 27, 2015 10:12 PM

I could be misreading "brim". I would subtract the original projection.
On Jul 27, 2015 4:42 PM, "Joseph Lenox" lenox.joseph@gmail.com wrote:

Use projection with cut=true (assuming the base of the object is at z=0),
then scale it out and linear_extrude up for the thickness you want. That
should get you close to what you want.

Keep it roughly equal to a single layer thickess (that your slicer would
use) or else you'll have more problems.

Frankly, brims are more easily added by the slicer in most cases (both
Cura and Slic3r will add brim gcode).

--Joseph Lenox

On Mon, Jul 27, 2015 at 4:36 PM, Peter Falke <
stempeldergeschichte@googlemail.com> wrote:

Maybe you could post your vessel for us to have a look at.

The sweep path, as far  as I know, needs you to input the path as a
numerical expression.
This is probably not known for an arbitrary vessel.

2015-07-27 18:07 GMT+02:00 PYM pm@pixelyourmind.de:

Hello,

i havesome trouble making a brim for a vessel with a complex cross
section
profile. I stumbled upon the sweep function and scad utils with has some
other additional functions, but i dont really know what code to use.

Can you please tell me which package i have to get to use the sweep
function?

Thanks a lot!

--
View this message in context:
http://forum.openscad.org/Please-help-with-path-extrusion-tp13322.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

--
stempeldergeschichte@googlemail.com karsten@rohrbach.de

P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist:
Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu
schreiben.
Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.

P.S. In case my e-mail is shorter than you enjoy:
I am currently trying short replies instead of no replies at all.
Please let me know, if you like to read more.

Enjoy!


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

I could be misreading "brim". I would subtract the original projection. On Jul 27, 2015 4:42 PM, "Joseph Lenox" <lenox.joseph@gmail.com> wrote: > Use projection with cut=true (assuming the base of the object is at z=0), > then scale it out and linear_extrude up for the thickness you want. That > should get you close to what you want. > > Keep it roughly equal to a single layer thickess (that your slicer would > use) or else you'll have more problems. > > Frankly, brims are more easily added by the slicer in most cases (both > Cura and Slic3r will add brim gcode). > > > --Joseph Lenox > > On Mon, Jul 27, 2015 at 4:36 PM, Peter Falke < > stempeldergeschichte@googlemail.com> wrote: > >> Maybe you could post your vessel for us to have a look at. >> >> The sweep path, as far as I know, needs you to input the path as a >> numerical expression. >> This is probably not known for an arbitrary vessel. >> >> 2015-07-27 18:07 GMT+02:00 PYM <pm@pixelyourmind.de>: >> >>> Hello, >>> >>> i havesome trouble making a brim for a vessel with a complex cross >>> section >>> profile. I stumbled upon the sweep function and scad utils with has some >>> other additional functions, but i dont really know what code to use. >>> >>> Can you please tell me which package i have to get to use the sweep >>> function? >>> >>> Thanks a lot! >>> >>> >>> >>> -- >>> View this message in context: >>> http://forum.openscad.org/Please-help-with-path-extrusion-tp13322.html >>> Sent from the OpenSCAD mailing list archive at Nabble.com. >>> >>> _______________________________________________ >>> OpenSCAD mailing list >>> Discuss@lists.openscad.org >>> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >>> >> >> >> >> -- >> stempeldergeschichte@googlemail.com <karsten@rohrbach.de> >> >> P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist: >> Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu >> schreiben. >> Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen. >> >> P.S. In case my e-mail is shorter than you enjoy: >> I am currently trying short replies instead of no replies at all. >> Please let me know, if you like to read more. >> >> Enjoy! >> >> _______________________________________________ >> OpenSCAD mailing list >> Discuss@lists.openscad.org >> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org >> >> >
P
PYM
Tue, Jul 28, 2015 9:37 AM

Hello,

i cant post the vessel as code since i only have it as prototype model here.
I am fitting the Brim by measuring the vessel manually. However i made a
professional MS Paint drawing  describing the situation roughly so you can
maybe get the idea better.

Thanks for the reply, hope you can help me!
http://forum.openscad.org/file/n13328/Ellipsoid_Brim.jpg

--
View this message in context: http://forum.openscad.org/Please-help-with-path-extrusion-tp13322p13328.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hello, i cant post the vessel as code since i only have it as prototype model here. I am fitting the Brim by measuring the vessel manually. However i made a professional MS Paint drawing describing the situation roughly so you can maybe get the idea better. Thanks for the reply, hope you can help me! <http://forum.openscad.org/file/n13328/Ellipsoid_Brim.jpg> -- View this message in context: http://forum.openscad.org/Please-help-with-path-extrusion-tp13322p13328.html Sent from the OpenSCAD mailing list archive at Nabble.com.
N
Neon22
Tue, Jul 28, 2015 10:13 AM

You might consider a rotate_interpolate of a profile (the green shape) and
then scale the result more in Y than X.
E.g.
scale([x_scale,y_scale,1])
rotate_extrude($fn=Faceted)
polygon(profile);

Where profile is a list of xy points. [[x1,y1], [], ...]
You can make the path in inkscape and use "Paths to OpenSCAD"
Extension(plugin).
E.g. http://www.thingiverse.com/thing:923244/#instructions

I'm also reminded of this:
http://www.thingiverse.com/thing:116447

Which I think needs less code to do what its doing but is one way to do it.

--
View this message in context: http://forum.openscad.org/Please-help-with-path-extrusion-tp13322p13331.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

You might consider a rotate_interpolate of a profile (the green shape) and then scale the result more in Y than X. E.g. scale([x_scale,y_scale,1]) rotate_extrude($fn=Faceted) polygon(profile); Where profile is a list of xy points. [[x1,y1], [], ...] You can make the path in inkscape and use "Paths to OpenSCAD" Extension(plugin). E.g. http://www.thingiverse.com/thing:923244/#instructions I'm also reminded of this: http://www.thingiverse.com/thing:116447 Which I think needs less code to do what its doing but is one way to do it. -- View this message in context: http://forum.openscad.org/Please-help-with-path-extrusion-tp13322p13331.html Sent from the OpenSCAD mailing list archive at Nabble.com.
P
PYM
Tue, Jul 28, 2015 11:39 AM

Hi,

unfortunately rotate_extrude() followed by scale() will give me an uneven
brim Thickness. It will be wider in the scaled dimension and more narrow in
the shorter side of the ellipse, so it cant fit on the elliptic vessel which
has a constant wall thickness.

Regards,

Patrick

--
View this message in context: http://forum.openscad.org/Please-help-with-path-extrusion-tp13322p13332.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Hi, unfortunately rotate_extrude() followed by scale() will give me an uneven brim Thickness. It will be wider in the scaled dimension and more narrow in the shorter side of the ellipse, so it cant fit on the elliptic vessel which has a constant wall thickness. Regards, Patrick -- View this message in context: http://forum.openscad.org/Please-help-with-path-extrusion-tp13322p13332.html Sent from the OpenSCAD mailing list archive at Nabble.com.
PF
Peter Falke
Tue, Jul 28, 2015 2:16 PM

Is this a good enough approximation for the cross section of the brim:

$fn = 32;
// vessel thickness = 4 (defined by the polygon in vessel())
vt=4;
// brim height
bh=10;

module vessel(){
polygon(
points=[[0,0],[1,0],[1,3],[2,3],[2,4],[3,4],[3,3],[4,3],[4,0],[4,-1],[0,-1]]
);
}

module brim_2d(){
translate([0,bh-vt,0])
difference(){
circle(vt);
translate([-vt,0,0])square(2vt,true);
translate([0,-vt,0])square(2
vt,true);
}
difference(){
square([vt,bh-vt]);
vessel();
}

}

brim_2d();

2015-07-28 13:39 GMT+02:00 PYM pm@pixelyourmind.de:

Hi,

unfortunately rotate_extrude() followed by scale() will give me an uneven
brim Thickness. It will be wider in the scaled dimension and more narrow in
the shorter side of the ellipse, so it cant fit on the elliptic vessel
which
has a constant wall thickness.

Regards,

Patrick

--
View this message in context:
http://forum.openscad.org/Please-help-with-path-extrusion-tp13322p13332.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

--
stempeldergeschichte@googlemail.com karsten@rohrbach.de

P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist:
Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu
schreiben.
Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.

P.S. In case my e-mail is shorter than you enjoy:
I am currently trying short replies instead of no replies at all.
Please let me know, if you like to read more.

Enjoy!

Is this a good enough approximation for the cross section of the brim: ​ $fn = 32; // vessel thickness = 4 (defined by the polygon in vessel()) vt=4; // brim height bh=10; module vessel(){ polygon( points=[[0,0],[1,0],[1,3],[2,3],[2,4],[3,4],[3,3],[4,3],[4,0],[4,-1],[0,-1]] ); } module brim_2d(){ translate([0,bh-vt,0]) difference(){ circle(vt); translate([-vt,0,0])square(2*vt,true); translate([0,-vt,0])square(2*vt,true); } difference(){ square([vt,bh-vt]); vessel(); } } brim_2d(); 2015-07-28 13:39 GMT+02:00 PYM <pm@pixelyourmind.de>: > Hi, > > unfortunately rotate_extrude() followed by scale() will give me an uneven > brim Thickness. It will be wider in the scaled dimension and more narrow in > the shorter side of the ellipse, so it cant fit on the elliptic vessel > which > has a constant wall thickness. > > Regards, > > Patrick > > > > -- > View this message in context: > http://forum.openscad.org/Please-help-with-path-extrusion-tp13322p13332.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > -- stempeldergeschichte@googlemail.com <karsten@rohrbach.de> P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist: Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu schreiben. Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen. P.S. In case my e-mail is shorter than you enjoy: I am currently trying short replies instead of no replies at all. Please let me know, if you like to read more. Enjoy!
P
PYM
Wed, Jul 29, 2015 5:26 PM

@Peter

Yes it is a good approximation, but the opposite side points to the outside
of the vessel :)

--
View this message in context: http://forum.openscad.org/Please-help-with-path-extrusion-tp13322p13367.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

@Peter Yes it is a good approximation, but the opposite side points to the outside of the vessel :) -- View this message in context: http://forum.openscad.org/Please-help-with-path-extrusion-tp13322p13367.html Sent from the OpenSCAD mailing list archive at Nabble.com.