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

Add the possibility to process the model's geometry #38

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

gabotechs
Copy link
Owner

@gabotechs gabotechs commented Sep 4, 2023

As an alternative to #37, let the users perform an arbitrary post-processing to the loaded geometry.

The post-processing callback is just one more parameter in the ModelProps, and it can be used like this:

<StlViewer
  modelProps={{
     geometryProcessor: (geometry) => LoopSubdivision.modify(geometry, 3, { })
  }}
/>

@u-u-z
Copy link

u-u-z commented Sep 5, 2023

greate things ~

@gabotechs gabotechs merged commit 8468c8b into master Sep 5, 2023
2 checks passed
@gabotechs gabotechs deleted the processing-geometry branch September 5, 2023 06:18
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