CAD Exchanger SDK
cadex::OBJ_Writer Class Reference

Writes Waverfront OBJ files. More...

Inheritance diagram for cadex::OBJ_Writer:

Public Member Functions

 OBJ_Writer ()
const OBJ_WriterParametersParameters () const
 Returns parameters.
OBJ_WriterParametersParameters ()
 Returns parameters.
- Public Member Functions inherited from cadex::Base_Writer
 ~Base_Writer ()
bool Transfer (const ModelData_Model &theModel)
 Converts source model into memory representation of the target file.
bool Transfer (const TopoDS_Shape &theShape)
 Converts source shape into memory representation of the target file. More...
bool WriteFile (const Base_UTF16String &theFileName)
 Writes contents to a target file. More...
bool WriteFile (std::ostream &theStream)
 Writes contents to a target stream. More...
Base_ProgressStatusProgressStatus () const
 Returns a progress status.
internal::Base_Writer_Private * Impl () const
template<typename T >
T * Impl () const
 Reserved for internal use.

Additional Inherited Members

- Protected Member Functions inherited from cadex::Base_Writer
 Base_Writer (internal::Base_Writer_Private *theImpl)

Detailed Description

Writes Waverfront OBJ files.

Refer to OBJ Converter.

WriteFile() overload accepting a stream cannot be used. Instead, use the overload accepting a file name.

The following example demonstrates using OBJ_Writer:

#include <cadex/OBJ_WriterParameters.hxx>
using namespace cadex;
OBJ_Writer aWriter;
OBJ_WriterParameters& aParam = aWriter.Parameters();
aParam.SaveNormals() = false;
aParam.ToGenerateMtlFile() = false;
if (aWriter.Transfer (aModel) && aWriter.WriteFile ("myfile.obj")) {

Constructor & Destructor Documentation

cadex::OBJ_Writer::OBJ_Writer ( )


LicenseManager_LicenseErrorif no OBJ license was activated.