Sure.  FreeCAD can export an object to SVG-- albeit their stuff doesnt work
very well, so i had to reparse their SVG and then re-generate.

The documentation is created with sphinxdoc-- and i wrote a plugin for
sphinxdoc ( cq_doc)  that generates the image automatically when the
documentation is built. So each image is automatically created from the
code below it.

Here is one of the samples ( the format is restructured text):


Plate with Hole
------------------------

A rectangular box, but with a hole added.

"\>Z" selects the top most face of the resulting box.  The hole is located
in the center because the default origin
of a working plane is at the center of the face.  The default hole depth is
through the entire part.

.. cq_plot::

    result = Workplane("front").box(2.0,2.0,0.5).faces(">Z").hole(0.5)

.. topic:: Api References

    .. hlist::
        :columns: 2

        * :py:meth:`Workplane.hole` **!**
        * :py:meth:`Workplane.box`
        * :py:meth:`Workplane.box`







On Sun, Mar 17, 2013 at 12:47 PM, Milos Davidovic <milo...@gmail.com> wrote:

> Great work! Can you explain how did you create bw images of objects in
> examples?
>
> Thanks,
> MIlos
>
> On Sun, Mar 17, 2013 at 2:27 PM, Dave Cowden <dave.cow...@gmail.com>
> wrote:
> > Hello, everyone:
> >
> > I'd like to introduce to you parametricparts.com, a new web-based
> platform
> > for making 3d parametric objects.
> >
> > There has been much talk over the years on a 'second level API'-- and i
> know
> > there are couple of implementations: cadmium for example.
> >
> > I would be interested in your thoughts about the API I have developed--
> > which is inspired by jQuery in the javascript world.  Unlike some of the
> > other second level APIs, my goal was to create a fluent API that allows
> > constructing objects in a way that captures design intent.
> >
> > Here's what i came up with:
> >
> > https://parametricparts.com/docs/examples.html
> >
> >  Right now cadquery, it is implemented on top of FreeCAD, because
> FreeCAD is
> > super easy to install. But if there is community interest, I would love
> to
> > move it to be implemented on top of pythonOCC, because it offers more
> > flexibility.
> >
> > I'm on a mission to build the first real productivity solution for 3D
> > content-- I'd love to hear your thoughts!
> >
> >
> >
> > _______________________________________________
> > Pythonocc-users mailing list
> > Pythonocc-users@gna.org
> > https://mail.gna.org/listinfo/pythonocc-users
> >
>
> _______________________________________________
> Pythonocc-users mailing list
> Pythonocc-users@gna.org
> https://mail.gna.org/listinfo/pythonocc-users
>
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to