-
Notifications
You must be signed in to change notification settings - Fork 208
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
Z scaling #937
Merged
Z scaling #937
Changes from 2 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
2a001a6
modify model transform keyin to take scaling
MarcNeely 581a421
test
MarcNeely 5a41d6b
fix instancing
MarcNeely 17374c1
Compare forceNoInstancing
pmconne 26f9e49
restore deleted property.
pmconne 48e2f41
Remove unnecessary invalidateScene and requestRedraw calls.
pmconne e4c3ac1
Cleanup & make work nicer with Z offset
MarcNeely 5a5b2d9
fix rgb axes in measure distance tool
MarcNeely a742f67
Merge branch 'z-scaling' of https://github.com/imodeljs/imodeljs into…
MarcNeely 023c1fc
Remove debug
MarcNeely 8e2638d
lint & typo
MarcNeely 567b7fe
Merge branch 'master' into z-scaling
MarcNeely f09107e
Merge branch 'master' into z-scaling
mergify[bot] 1aa841e
Modify tessellation for nonuniform scaling
MarcNeely 9d3b718
Merge branch 'z-scaling' of https://github.com/imodeljs/imodeljs into…
MarcNeely dbc6969
rush change
MarcNeely 325b952
extract-api
MarcNeely dbce0b4
Replace use of System.instance with IModelApp.rSys
MarcNeely 2609c68
move scaleFactor calc to TileDrawArgs constructor
MarcNeely 1e78608
Merge branch 'master' into z-scaling
pmconne a8b328c
Merge branch 'master' into z-scaling
mergify[bot] b033c23
Merge branch 'master' into z-scaling
mergify[bot] ba5928b
Merge branch 'master' into z-scaling
mergify[bot] d071d13
Merge branch 'master' into z-scaling
mergify[bot] 015c99d
Merge branch 'master' into z-scaling
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
If the only thing that changed is this._forceNoInstancing then you're not going to update your Id.
The viewport already invalidates the scene when the display transform provider changes so you don't have to worry about that - you just need to make sure you compute a correct tree Id.
Probably check
this._forceNoInstancing !== this._id.forceNoInstancing
.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.
Check it where, in the listener and then if it changed create a new id? How does that make the tiles reload?
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.
Right here where you are checking compareIModelTileTreeIds.
TileTreeReference.treeOwner is called whenever we want access to the reference's TileTree. We compute an Id here based on the reference's current state, and ask for that tree. If the reference's state changed, we may get back a different tree - e.g., one with instancing disabled.