Skip to content

Add stream output support for STL, GLTF and other file formats #837

@jdegenstein

Description

@jdegenstein

Description

Currently, several file formats in OCCT support stream output via std::ostream. This is already supported for the BREP and STEP formats via e.g. STEPCAFControl_Writer.WriteStream. I propose that stream output support is added for all supported export formats like STL, GLTF/GLB, etc.

Use Case

Applicable for web-based applications where exporting from OCCT to a suitable mesh format for display via e.g. Three.JS is a common workflow.

Benefits

This has the potential to reduce memory use in certain web-based applications for OCCT, where emulating writing to a file can potentially increase the memory usage.

Additional Context

gumyr/build123d#1024

Metadata

Metadata

Assignees

Labels

0. NewThe issue was created, but not updated by maintainer. Waiting for updates labels and categories1. Data ExchangeImport/Export or iterating of the CAD data2. EnhancementNew feature or request

Type

No type

Projects

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions