Loading...
Searching...
No Matches
meshkit::IOOptions Struct Reference

Options shared by the MKB and 2DM readers and writers. More...

#include <meshkit/io.hpp>

Collaboration diagram for meshkit::IOOptions:

Public Attributes

Limits limits
 Count, workspace-estimate, work, metadata-byte and 2DM line-length limits.
 
std::function< bool()> cancelled
 Optional poll; returning true aborts with status Cancelled (code cancelled).
 
bool overwrite = false
 Writes only.
 
bool durable = false
 Writes only.
 
bool allowAttributeLoss = false
 write2dm() only.
 
bool legacy2dm
 Compatibility ids/optional materials; still rejects malformed geometry.
 
UnknownRecords unknownRecords = UnknownRecords::Reject
 read2dm() only: handling of unsupported cards.
 

Detailed Description

Options shared by the MKB and 2DM readers and writers.

The cancellation callback runs synchronously on the calling thread.

Member Data Documentation

◆ allowAttributeLoss

bool meshkit::IOOptions::allowAttributeLoss = false

write2dm() only.

False (default) refuses a mesh whose attributes 2DM cannot hold (code attribute_loss); true writes it and lists the lost categories in IOReport::losses.

◆ cancelled

std::function<bool()> meshkit::IOOptions::cancelled

Optional poll; returning true aborts with status Cancelled (code cancelled).

Empty never cancels. Polled when the operation starts and periodically while it runs.

◆ durable

bool meshkit::IOOptions::durable = false

Writes only.

True flushes the temporary file to storage (fsync/_commit) before publication; directory-entry durability is not promised.

◆ legacy2dm

bool meshkit::IOOptions::legacy2dm
Initial value:
=
false

Compatibility ids/optional materials; still rejects malformed geometry.

◆ limits

Limits meshkit::IOOptions::limits

Count, workspace-estimate, work, metadata-byte and 2DM line-length limits.

◆ overwrite

bool meshkit::IOOptions::overwrite = false

Writes only.

False (default) refuses to replace an existing file (code publish); true replaces it atomically.

◆ unknownRecords

UnknownRecords meshkit::IOOptions::unknownRecords = UnknownRecords::Reject

read2dm() only: handling of unsupported cards.


The documentation for this struct was generated from the following file: