Options shared by the MKB and 2DM readers and writers. More...
#include <meshkit/io.hpp>
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. | |
Options shared by the MKB and 2DM readers and writers.
The cancellation callback runs synchronously on the calling thread.
| 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.
| 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.
| bool meshkit::IOOptions::durable = false |
Writes only.
True flushes the temporary file to storage (fsync/_commit) before publication; directory-entry durability is not promised.
| bool meshkit::IOOptions::legacy2dm |
Compatibility ids/optional materials; still rejects malformed geometry.
| Limits meshkit::IOOptions::limits |
Count, workspace-estimate, work, metadata-byte and 2DM line-length limits.
| bool meshkit::IOOptions::overwrite = false |
Writes only.
False (default) refuses to replace an existing file (code publish); true replaces it atomically.
| UnknownRecords meshkit::IOOptions::unknownRecords = UnknownRecords::Reject |
read2dm() only: handling of unsupported cards.