Feature request: STL 2.0 (aka AMF) export & import support

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Feature request: STL 2.0 (aka AMF) export & import support

clothbot
Hi Cliff and Marius,

Now for the big one.  Please add support for the new STL 2.0 (aka AMF) file format.


- AMF files are either plain-text XML or zip-compressed XML; you can "unzip" the AMF examples (change suffix to .zip) to examine the underlying code.
- AMF supports multiple materials!
- if you get the layer() modifier working for 2D, extend its application to 3D to support this use.

At the very least, I'd want to be able to do the following top-level assembly operations:

  layer("ABS_Red") myModel_Red();
  layer("ABS_Green") myModel_Green();
  layer("ABS_Blue") myModel_Blue();
  layer("PVA") addSupport() {
myModel_Red();
myModel_Green();
myModel_Blue();
  }
  layer("PLA") import_stl("pla_parts.stl");
  layer("SS") Stainless_Steel_Parts();

Thanks!

Andrew.

--

"The future is already here.  It's just not very evenly distributed" -- William Gibson

Me: http://clothbot.com/wiki/


Reply | Threaded
Open this post in threaded view
|

Re: Feature request: STL 2.0 (aka AMF) export & import support

Giles Bathgate-2
One problem is that CGAL doesn't seem to support color information,
(or maybe it does but not the way openscad is currently implemented)

To render to STL you need to go through CGAL, so although this feature
might be on the horizon. I think a migration to openCASCADE might need
to come first.

Regards

Giles

On 27 May 2011 14:44, Andrew Plumb <[hidden email]> wrote:

> Hi Cliff and Marius,
> Now for the big one.  Please add support for the new STL 2.0 (aka AMF) file
> format.
> Reference material:  http://creativemachines.cornell.edu/amf
> - AMF files are either plain-text XML or zip-compressed XML; you can "unzip"
> the AMF examples (change suffix to .zip) to examine the underlying code.
> - AMF supports multiple materials!
> - if you get the layer() modifier working for 2D, extend its application to
> 3D to support this use.
> At the very least, I'd want to be able to do the following top-level
> assembly operations:
>   layer("ABS_Red") myModel_Red();
>   layer("ABS_Green") myModel_Green();
>   layer("ABS_Blue") myModel_Blue();
>   layer("PVA") addSupport() {
> myModel_Red();
> myModel_Green();
> myModel_Blue();
>   }
>   layer("PLA") import_stl("pla_parts.stl");
>   layer("SS") Stainless_Steel_Parts();
> Thanks!
> Andrew.
> --
>
> "The future is already here.  It's just not very evenly distributed" --
> William Gibson
>
> Me: http://clothbot.com/wiki/
>
>
>
> _______________________________________________
> OpenSCAD mailing list
> [hidden email]
> http://rocklinux.net/mailman/listinfo/openscad
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Feature request: STL 2.0 (aka AMF) export & import support

Bryan Bishop
On Fri, May 27, 2011 at 10:06 AM, Giles Bathgate <[hidden email]> wrote:
To render to STL you need to go through CGAL, so although this feature
might be on the horizon. I think a migration to openCASCADE might need
to come first.

Well, that wouldn't be too hard- considering the python/openscad bindings. Just replace/wrap the CAD operations in python with calls to pythonOCC.

- Bryan
http://heybryan.org/
1 512 203 0507
Reply | Threaded
Open this post in threaded view
|

Re: Feature request: STL 2.0 (aka AMF) export & import support

clothbot
In reply to this post by Giles Bathgate-2
Hi Giles,

Yeah, doesn't seem to be inherently flexible in that respect.

If we can get simple STL 2.0 export (and import), top-level assembly could be done via simple xsltproc and/or other languages' XML API hooks (like python as Bryan just mentioned).

Andrew. 

On 2011-05-27, at 11:06 AM, Giles Bathgate wrote:

One problem is that CGAL doesn't seem to support color information,
(or maybe it does but not the way openscad is currently implemented)

To render to STL you need to go through CGAL, so although this feature
might be on the horizon. I think a migration to openCASCADE might need
to come first.

Regards

Giles

On 27 May 2011 14:44, Andrew Plumb <[hidden email]> wrote:
Hi Cliff and Marius,
Now for the big one.  Please add support for the new STL 2.0 (aka AMF) file
format.
Reference material:  http://creativemachines.cornell.edu/amf
- AMF files are either plain-text XML or zip-compressed XML; you can "unzip"
the AMF examples (change suffix to .zip) to examine the underlying code.
- AMF supports multiple materials!
- if you get the layer() modifier working for 2D, extend its application to
3D to support this use.
At the very least, I'd want to be able to do the following top-level
assembly operations:
  layer("ABS_Red") myModel_Red();
  layer("ABS_Green") myModel_Green();
  layer("ABS_Blue") myModel_Blue();
  layer("PVA") addSupport() {
myModel_Red();
myModel_Green();
myModel_Blue();
  }
  layer("PLA") import_stl("pla_parts.stl");
  layer("SS") Stainless_Steel_Parts();
Thanks!
Andrew.
--

"The future is already here.  It's just not very evenly distributed" --
William Gibson

Me: http://clothbot.com/wiki/



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://rocklinux.net/mailman/listinfo/openscad

--

Makerbot Number Nine... #9... 0x09... 0o11... 0b1001... 
http://clothbot.com/wiki/MakerBotNumberNine