mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-10 17:40:24 +08:00
Add special parameter, which allow reading of all top level (not shared by any other entities) solids (manifold_solid_brep) and shells (shell_based_surface_model).
The examples how to use a new parameter:
DRAW:
switch on a parameter:
param read.step.all.shapes On
update model to apply new parameter value:
newmodel
read as usual:
stepread test.stp res * // each top level solid or shell will be read as res_i shape.
or
ReadStep Doc test.stp
CXX Code:
switch on a parameter:
Interface_Static::SetIVal("read.step.all.shapes", 1);
read as usual
20 lines
487 B
Plaintext
20 lines
487 B
Plaintext
puts "========"
|
|
puts "OCC27721"
|
|
puts "========"
|
|
puts ""
|
|
##############################################################################
|
|
# Add possibility to read STEP file with invalid shape_representation entity.
|
|
##############################################################################
|
|
|
|
param read.step.all.shapes 1
|
|
newmodel
|
|
|
|
ReadStep D [locate_data_file bug27721.stp]
|
|
|
|
XGetOneShape result D
|
|
|
|
checknbshapes result -solid 1 -shell 2 -shape 43
|
|
|
|
param read.step.all.shapes 0
|
|
newmodel
|