-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[BoundingBox] Add visualization for automatically computed bounding box #2087
base: develop
Are you sure you want to change the base?
Conversation
e4660dc
to
b01e31b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We cannot have hardcoded information from nodes in the code engine.
meshroom/core/nodes/__init__.py
Outdated
def getNodeClass(nodeType: str): | ||
""" | ||
Returns the appropriate subclass of `meshroom.core.node.Node` based on `nodeType`. | ||
|
||
Inputs | ||
------ | ||
nodeType: str | ||
the name of the node type | ||
|
||
Returns | ||
------- | ||
type[Node] | ||
the corresponding type class | ||
""" | ||
if nodeType=="Meshing": | ||
from meshroom.core.nodes.MeshingNode import MeshingNode | ||
cls = MeshingNode | ||
else: | ||
from meshroom.core.node import Node | ||
cls = Node | ||
return cls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The NodeDesc should be able to create a node, with a default implementation that returns "Node".
And then a NodeDesc could override the default Node without having hardcoded node names in the engine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proposed solution (see 87a8376):
- move bounding box update handling to the Meshing node description
- give Node object reference to the corresponding node description
- add a third attribute dictionary in Node (in addition to internal and IO attributes dictionaries) that gives a flexibility to add runtime-related attributes that can be used in qml code
b01e31b
to
cb4a137
Compare
87703a3
to
ce0aa3e
Compare
8be718c
to
87a8376
Compare
87a8376
to
ac4725e
Compare
9a10a6b
to
0992734
Compare
0992734
to
44a2a67
Compare
- fix circular dependacy issue in import - fix dirty hack for reading python variable "automaticBBoxValid" in qml
- remove hardcoded nodes information from the code engine - add "runtime attributes" for more flexibility
Linked to alicevision/AliceVision#1473