I would be happy to release the plugin. There are two parts needed to make it workable for pythonOCC:
(1) a way to creating a 2-D projection of an object in SVG ( or png or jpg ) format in pythonOCC. This needs to be possible without relying on screen-grabbing tricks, because you cannot count on having a display when the script runs. (2) a high level api to use for the script format. of course it would be possible to use any script that returns an object that can be exported-- but the longer the script, the less 'nice' it is. On Sun, Mar 17, 2013 at 1:58 PM, Milos Davidovic <milo...@gmail.com> wrote: > Thanks! Any plans for releasing the plugin as opensource? It would be > great for creation of professionally looking figures of simple CAD > models. > > Is anybody aware of anything similar in pythonocc? > > Milos > > > On Sun, Mar 17, 2013 at 6:04 PM, Dave Cowden <dave.cow...@gmail.com> > wrote: > > 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 > > > > _______________________________________________ > 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