forked from zeux/meshoptimizer
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bim 272 converter packed metadata from gltfpack and output metadata file #1
Merged
pirlande-fw
merged 9 commits into
master
from
BIM-272-converter-packed-metadata-from-gltfpack-and-output-metadata-file
Aug 30, 2024
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ecce1d0
Extract parent node to mesh information in parser
pirlande-fw 7efb761
Add an option to keep parent nodes while merging nodes, as parent nod…
pirlande-fw 5a04cfc
Write the mesh name into corresponding node when provided
pirlande-fw f9934f6
Save merge information into target mesh
pirlande-fw 3a3fc7d
Add an option to add an output file containing merge metadata informa…
pirlande-fw 5721396
Factorize mesh unique identifier computation
pirlande-fw 852f22b
Fix output optimization to avoid duplicating the first mesh info
pirlande-fw cf20d35
Rename metadata output option to -mmi
pirlande-fw 538a003
Apply Allman style for curly brackets
pirlande-fw 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
Factorize mesh unique identifier computation
- Loading branch information
commit 5721396f8f7e7df697d687bfb70309937f84d263
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1180,12 +1180,12 @@ size_t writeInstances(std::vector<BufferView>& views, std::string& json_accessor | |
return result; | ||
} | ||
|
||
void writeMeshNode(std::string& json, size_t mesh_offset, const char* name, cgltf_node* node, cgltf_skin* skin, cgltf_data* data, const QuantizationPosition* qp) | ||
void writeMeshNode(std::string& json, size_t mesh_offset, std::string& name, cgltf_node* node, cgltf_skin* skin, cgltf_data* data, const QuantizationPosition* qp) | ||
{ | ||
comma(json); | ||
append(json, "{\"mesh\":"); | ||
append(json, mesh_offset); | ||
if (name) { | ||
if (!name.empty()) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: Allman |
||
append(json, ",\"name\":\""); | ||
append(json, name); | ||
append(json, "\""); | ||
|
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.
nit: Allman style brackets