-
Notifications
You must be signed in to change notification settings - Fork 202
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
Pixar Mesh write translator/utilities refactoring #420
Merged
Merged
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
0a2e072
Refactored _GetDagPath, _GetDagPathMap and moved them under UsdMayaUt…
f87dae6
Rename meshUtil to meshReadUtils.
4fe993e
- Initial commit to introduce TranslatorMeshWrite class ( this class …
b67e5e2
- Remove meshWriter_Subdiv and start using UsdMayaMeshUtil::assignSub…
8b94425
Created utility functions for writing Maya mesh data to USD:
a0ee49c
Create utility functions for writing out UVSets as Vec2f Primvars.
4160201
Removed meshWriter_Skin and created a new utility namespace (UsdMayaJ…
5c8f3a6
Removed meshWriter_Primvars and created a new utility for writing col…
331aee4
Start using UsdMayaWriteUtil::SetAttribute utilities in all writers:
9750303
Created utility functions for writing Maya mesh data to USD:
9c0ade6
Address feedback: use getDagPath() in UsdMayaWriteJobContext::CreateP…
1e492f2
Address feedbacks.
80f2240
Address feedback ( Matt ).
2b1e304
Address feedback ( Rob ).
9f2d55a
Address feedback: remove unnecessary try/catch.
45f0f51
Address feedback: rename wrapMeshUtil to wrapMeshWriteUtils
8e3a0ac
address feedback.
b7a202b
address feedback: make sure to handle both DAG nodes or DG nodes.
a02159c
Address feedback:
4ca16c0
Address feedback: use VtVec3fArray, VtIntArray, VtFloatArray instead …
ab0a321
Address feedback: return early if the status is false.
b5ec789
Merge pull request #421 from Autodesk/sabrih/MAYA-101460/pxr_mesh_wri…
HamedSabri-adsk 25a5c20
Merge branch 'sabrih/MAYA-101460/pxr_mesh_write_part3' into sabrih/MA…
812adf6
Merge branch 'sabrih/MAYA-101460/pxr_mesh_write_part1' into sabrih/MA…
HamedSabri-adsk 9b138b3
Merge pull request #423 from Autodesk/sabrih/MAYA-101460/pxr_mesh_wri…
HamedSabri-adsk 9cb5880
Merge branch 'sabrih/MAYA-101460/pxr_mesh_write_part5' into sabrih/MA…
d5426d3
Address feedbacks:
047a097
Merge branch 'sabrih/MAYA-101460/pxr_mesh_write_part6' into sabrih/MA…
c1682b3
post merge fixes.
2d15079
address feedback:
2ea47fd
Merge pull request #426 from Autodesk/sabrih/MAYA-101460/pxr_mesh_wri…
HamedSabri-adsk 35c0c0f
Address feedback: add parameter names in a function prototype
12ad434
address feedback: replace Default with Unauthored
5a64848
Address feedback: use VtVec3fArray, VtIntArray, VtFloatArray instead …
f7f193b
address feedback: fix the comments pointing at the old function names.
a7ccad1
address feedback: remove changes that were accidentally pulled into t…
6a4686e
Merge branch 'sabrih/MAYA-101460/pxr_mesh_write_part8' into sabrih/MA…
5ecb68c
Fix post merge!
062ac5a
Add feedback: refactor SetAttribute termplate functions.
21850e1
Merge branch 'sabrih/MAYA-101460/pxr_mesh_write_part9' into sabrih/MA…
39c824f
Merge branch 'dev' into sabrih/MAYA-101460/pxr_mesh_write_part1
d891b7e
Address feedback: swap the last 2 arguments passed to SetAttribute te…
a520d00
Fix python binding.
53dd501
Merge branch 'dev' into sabrih/MAYA-101460/pxr_mesh_write_part1
5803a46
comment out the logics in wrapMeshWriteUtils. This code is not used a…
be3c545
Revert "comment out the logics in wrapMeshWriteUtils. This code is no…
7a1f16a
Merge branch 'dev' into sabrih/MAYA-101460/pxr_mesh_write_part1
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
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.
@HamedSabri-adsk: Can you please revert this change? True that the Python bindings for this are not used anywhere in maya-usd, but we have internal code that does this (using the old name):
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.
Hey @mattyjams Sure will do. But before that I want to understand a few things:
1-
I can see in the original code that GetMeshNormals is not a static function and yet it in the python binding is declared as
staticmethod
. I am not an expert in Boost python binding but curious how this works?PixarAnimationStudios/OpenUSD@be80acc
2- MeshUtil has now renamed MeshWriteUtils. I had to fix it in this commit:
a520d00
Does this mean that we should revert these name changes as well?
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.
For #1, we're binding
MeshWriteUtils.GetMeshNormals()
in Python to the_GetMeshNormals()
function declared just above inwrapMeshWriteUtils.cpp
, which is indeed declared static, and returns a boost tuple type:maya-usd/lib/mayaUsd/python/wrapMeshWriteUtils.cpp
Line 42 in 5803a46
For #2, we do want the name changes so that files/classes/etc. are all in alignment, so that part should not be reverted. We can absorb the name change no problem, we just need a function with the new name to exist so that we can switch to it. :P
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.
@mattyjams Gotcha... see be3c545
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.
Great, thanks!