forked from Open-Cascade-SAS/OCCT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Data Exchange, Gltf Export - Metadata support Open-Cascade-SAS#79
Add supporting of metadata key-value export into extras section of each node.
- Loading branch information
Showing
15 changed files
with
185 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# !!!! This file is generated automatically, do not edit manually! See end script | ||
set filename bug28345_30338.stp | ||
set ref_size 5896 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# !!!! This file is generated automatically, do not edit manually! See end script | ||
set filename bug28389_CONFIDENTIAL_SHEET_METAL_F3D.stp | ||
set ref_size 86278 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# !!!! This file is generated automatically, do not edit manually! See end script | ||
set filename bug28444_nist_ftc_06_asme1_ct5240_rd.stp | ||
set ref_size 85383 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# !!!! This file is generated automatically, do not edit manually! See end script | ||
set filename bug29525_rev_part_neu_01.prt_converted_from_datakit.stp | ||
set ref_size 80996 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# !!!! This file is generated automatically, do not edit manually! See end script | ||
set filename bug29633_nist_ctc_05_asme1_ap242-1.stp | ||
set ref_size 69902 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# !!!! This file is generated automatically, do not edit manually! See end script | ||
set filename bug29803.stp | ||
set ref_size 17032 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# !!!! This file is generated automatically, do not edit manually! See end script | ||
set filename sp7_04-do-242.stp | ||
set ref_size 224779 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# !!!! This file is generated automatically, do not edit manually! See end script | ||
set filename bug32087_part.stp | ||
set ref_size 15789 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# !!!! This file is generated automatically, do not edit manually! See end script | ||
set filename nist_ftc_08_asme1_ap242-2.stp | ||
set ref_size 118200 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
pload MODELING |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Set flag dump_file to 1 in order to regenerate script files with actual data | ||
# used as reference. In this mode all tests intentionally report failure. | ||
set dump_file 0 | ||
|
||
# Read original file | ||
if { [string length $filename] > 1} { | ||
set path_file [locate_data_file $filename] | ||
if { [catch { ReadFile D $path_file } catch_result] } { | ||
set err_msg "Error: file was not read - exception " | ||
puts $err_msg | ||
} | ||
} | ||
|
||
# mesh the shape before Gltf writing | ||
XGetOneShape a D | ||
incmesh a 0.1 | ||
|
||
# write file | ||
WriteGltf D $imagedir/${casename}_D_First.gltf | ||
set aSize [file size $imagedir/${casename}_D_First.gltf] | ||
|
||
if { $dump_file == 1 } { | ||
set fd_stream [open $dirname/$groupname/$gridname/$casename w] | ||
puts $fd_stream "# !!!! This file is generated automatically, do not edit manually! See end script" | ||
puts $fd_stream "set filename $filename" | ||
puts $fd_stream "set ref_size $aSize" | ||
close $fd_stream | ||
puts "Error : Running in regeneration mode, comparison was not performed!" | ||
} else { | ||
if {$aSize != $ref_size} { | ||
puts "Error: Wrong file size $aSize instead of $ref_size" | ||
} | ||
} | ||
|
||
# finalize scenario | ||
Close D | ||
file delete $imagedir/${casename}_D_First.gltf | ||
file delete $imagedir/${casename}_D_First.bin | ||
puts "TEST COMPLETED" |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
001 step | ||
002 gltf_export |
File renamed without changes.