Enable Blackbox Rendering of components #489
rkrishnasanka
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So we start with the loading of the json file:
https://github.com/CIDARLAB/3DuF/blob/11da5c0d50c7af50e7c277d92ae1eef33dfdbbbf/src/app/utils/loadUtils.ts#L118C12-L118C41
Then we update the component loading function:
3DuF/src/app/utils/loadUtils.ts
Line 564 in 11da5c0
After this line:
3DuF/src/app/utils/loadUtils.ts
Line 568 in 11da5c0
Check if the entity is registered in 3DuF by calling this function (entity is minttype):
3DuF/src/componentAPI.ts
Line 217 in 11da5c0
(Also please update the code documentation so that we know in the future which function to call)
If neither work:
Create a renderer for a black-box component (Follow the tutorial for creating new components), and add a new method in the componentAPI.ts
Here's how the renderer is requested by 3DuF when drawing known components:
https://github.com/CIDARLAB/3DuF/blob/11da5c0d50c7af50e7c277d92ae1eef33dfdbbbf/src/componentAPI.ts#L479C15-L479C15
Beta Was this translation helpful? Give feedback.
All reactions