DiscussionsIssue archiveOCCT:Visualization

Archived issue #0007667

Export contents of view to vector graphic file

Open CASCADEOCCT:Visualizationclosed0 public notes

Search issues

Description

It is necessary to export contents of viewer's view to vector graphic file, for
example, to PostScript (for all OS) and to Windows Metafile (for Windows OS only)

Additional information

Documentation remark, added by Author 2005-02-24 07:30:42:

New features:
Using GL2PS GNU library now it is possible to export view content to vector
format file. The usage may be as follow:

Handle( V3d_Vuew ) aView = ...
aView->View()->Export( "myfile.ps", Visual3d_EF_PostScript );

For more implementation details see attached doc.
Changes:
Two methods was added to OpenGl_PrimitiveArray (draw_primitive_arrays() and
draw_primitive_elements()), which emulate the same effect as standard OpenGl
functions glDrawArrays() and glDrawElements() without a definition of any
arrays (vertex, colour, normal ...). They call instead of glDrawArrays() and
glDrawElements() only in GL_FEEDBACK render mode.

Public activity

No public notes

Participants are labeled by their role within this record.

Related records