Hi Henrik,
we opened a new thread about this sample wiki page thing. However I think
your questions are mode general, as your proposal would imply a deeper
modification in pythonOcc web site. However, your point is valid, so maybe
you can make your ow thread.
Loïc
PS:
About your link I really lik
Like the initiative! think there are way to few google-hits for pythonocc,
or occ for that matter!
What's also interseting to consider is how the samples are presented online.
are they just going to be static pages, or maybe more interactive with some
commenting/discussion features? One step furth
Perfect, let's go for it. Please create a new thread related to this topic.
Thomas
2009/12/10 Simon Loic
> Hi,
> As there are enough people interested in this sample documentation web
> page, maybe it's time to start a new thread with a better adapted title, and
> discuss different possibilitie
Hi,
As there are enough people interested in this sample documentation web page,
maybe it's time to start a new thread with a better adapted title, and
discuss different possibilities. Then once we converge on the approach (to
generate html doc pages and screenshots), we can decide who's doing what
Its so cool to have you on this list Fotios ;')
___
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users
Thomas, in case it will not work (i think that the Dump method requires an
actual visible window, without researching further) you can try to use the
Aspect_PixMap class.
Code snippet:
void ToPixMap(AnsiString Filename, int width, int height)
{
Handle(Aspect_PixMap) aPixMap = myView->ToPixMap(
The screenshot OCC feature is implemented in the V3d_View class (the Dump
method). Below is copied/pasted the part of the V3d_View.hxx header that
defines the prototype for this method:
//! dump the full contents of the view with a
//! different scale according to the required sheet
//
Good point, although generating the web page for the samples won't be an
every day activity.
Normally, it's possible to achieve off-screen rendering with openGL. As for
pythonOCC, OCC (that use openGL eventually) I don't know if this option is
available. Tomas will surely know more about it.
Loïc
On Tue, Dec 8, 2009 at 5:12 PM, Simon Loic wrote:
> One other question remains, how to automatically create screenshots for all
> the samples? Shall we add a new function in every sample (eg
> CreateScreenShots) ?
Does anyone know how to do this *without* requiring X to be installed
and running? R
Hi Jelle, Tomas,
I didn't know about sphinx so I had a glance. From what I saw it's meant to
create html doc from reStrcturedText docs. Those latter would be set up
manually which is different from the automagic script proposed by Thomas.
Yet, this might not be so much work. And anyway the info hel
> Even better: let's write a python script that automagically create
> those pages by traversing the samples directory!
That would be a good idea. Sphinx is known to work well with
doctests / unittests and documentation generation.
-jelle
___
Pytho
Hi Thomas,
>From what I saw, I share your opinion on pythonCascade.
About the sample web page, are you serious about your automagic script, or
just making fun of me?
Honestly, I would be glad to help on this, but I have no idea how you want
to proceed.
cheers
Loïc
On Mon, Dec 7, 2009 at 6:22 PM,
Hi Loic,
I discovered pythoncascade when looking for a python binding to OpenCASCADE.
I was in touch with Sandor Racz, the original author of pythonCascade, but I
didn't manage to get his source code. That's why I started my own wrapper,
distributed under an open source and free license.
pythonCa
13 matches
Mail list logo