-
-
Notifications
You must be signed in to change notification settings - Fork 382
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
vtkMapper.setResolveCoincidentTopologyPolygonOffsetParameters errors #3131
Conversation
I guess the open questions/todos on this issue/PR:
|
82206d9
to
9357c97
Compare
I think so, there is also a Static ResolveCoincidentTopology in VTK C++. |
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.
Shouldn't you expose a "static" MTime ? so that it can be considered when deciding to building/updating the shader ?
I think that makes sense as the global/static factor/offset are added with instance values as a uniform for the mappers shaders. How to do that? Upgrade the static object to be a full
Do you have any insight on that? |
Yes, that makes sense |
I'm not sure what the issue is TBH |
which is called by macros.js object setter macro
9357c97
to
60356ad
Compare
superseded by #3142 |
Can't reopen this PR so opening #3143 |
Context
When calling the static mapper
vtkMapper.setResolveCoincidentTopologyPolygonOffsetParameters
, there is an error because the "class" does not have a publicAPI with amodified()
function.Results
Does not error now when calling
vtkMapper.setResolveCoincidentTopologyPolygonOffsetParameters
.Some other tests are failing after adding the test in this PR. Seems that calling
setResolveCoincidentTopologyPolygonOffsetParameters
with the initial results ofgetResolveCoincidentTopologyPolygonOffsetParameters
does not completely undo the effect?Changes
The error fix involved adding a noOp
modified
function. Alternatives could be to check ifpublicAPI
hasmodified
in macros.js or upgrade the Mapper static object with macros.js'function obj(publicAPI = {}, model = {})
"constructor."PR and Code Checklist
npm run reformat
to have correctly formatted codeTesting