Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean up excess geometry parts alpha API #115

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

MichaelBelousov
Copy link
Contributor

temporary alpha API to clean up geometry parts for #114.

A more realistic solution is details in #114.

@@ -1129,6 +1136,16 @@ export class IModelTransformer extends IModelExportHandler {
partiallyCommittedElem.forceComplete();
}
}

if (this._options.cleanupUnusedGeometryParts)
// FIXME: move to importer
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move to importer

transformer.shouldExportElement = (elem) => elem.id !== physObj2.id;
await transformer.processAll();

function printSize(p: string) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIXME: remove from test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants