mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-30 12:14:08 +03:00
StlTransfer.cxx, function StlTransfer::BuildIncrementalMesh(...) fills the StlMesh_Mesh. Before this fix the StlTransfer always force meshing of the passed shape. Now meshing is completely removed from the StlTransfer. StlWriter can return error status now, for example, if a mesh of the passed shape is empty. In this case file will be not created. Added test case bugs/xde/bug25357 Avoid the warning on gcc compiler. Test scripts were modified according to the fix. 1) bug23192, bug22670, bug23193: removed "isParallel" flag from the command arguments. Manually meshing of the shape (as far as meshing was removed from STL writer). 2) bug22898: before the fix writestl always remeshes the shape with a deflection, related to the boundery box of the shape. For "hammer" shape there is a 38.9076 deflection for mesh. Differences between before writing and after reading are dedicated to fact that stl writes triangulation as an elements of the spahe (like faces, edges etc.)
57 lines
1.3 KiB
Plaintext
57 lines
1.3 KiB
Plaintext
puts "TODO OCC24156 MacOS: Error: unsupported locale specification"
|
|
|
|
# Test for issue #22898 and other functionality that can be affected by locale.
|
|
# Just run multiple conversions of the shape to and from diferent formats and
|
|
# check that the result is good shape with expected area
|
|
|
|
set anOS $tcl_platform(os)
|
|
if { ${anOS} == "Linux" } {
|
|
dlocale LC_ALL fr_FR
|
|
} else {
|
|
dlocale LC_ALL French
|
|
}
|
|
|
|
pload MODELING
|
|
pload XSTEP
|
|
|
|
# original shape
|
|
restore [locate_data_file hammer.brep] hammer
|
|
checkshape hammer
|
|
tolerance hammer
|
|
checkarea hammer 3.978e8 1e6 0.001
|
|
|
|
# BREP
|
|
save hammer $imagedir/hammer.brep
|
|
restore $imagedir/hammer.brep brep
|
|
checkshape brep
|
|
tolerance brep
|
|
checkarea brep 3.978e8 1e6 0.001
|
|
|
|
# IGES
|
|
brepiges hammer $imagedir/hammer.igs
|
|
igesbrep $imagedir/hammer.igs iges *
|
|
checkshape iges
|
|
tolerance iges
|
|
checkarea iges 3.978e8 1e6 0.001
|
|
|
|
# STEP
|
|
stepwrite a hammer $imagedir/hammer.stp
|
|
stepread $imagedir/hammer.stp step *
|
|
checkshape step_1
|
|
tolerance step_1
|
|
checkarea step_1 3.978e8 1e6 0.001
|
|
|
|
# STL
|
|
incmesh hammer 38.9076
|
|
writestl hammer $imagedir/hammer.stl
|
|
readstl stl $imagedir/hammer.stl
|
|
checkshape stl
|
|
tolerance stl
|
|
checkarea stl 3.978e8 1e6 0.001
|
|
|
|
# VRML: reading does not work regardless of locale...
|
|
writevrml hammer $imagedir/hammer.vrml
|
|
#loadvrml vrml $imagedir/hammer.vrml
|
|
#checkshape vrml
|
|
#tolerance vrml
|