Skip to content

STEP import fails if cascade unit it set to M #512

@martin-bernhard

Description

@martin-bernhard

Description

multi_solids.zip

When trying to import the attached STEP file in OCCT 7.9.0 with "xstep.cascade.unit" set to "M" (metre), the imported shape results in infinite geometry.
If I set the "xstep.cascade.unit" to "MM", the geometry gets correctly imported.

Here are 2 screenshots of the bad imported geometry and the expected result:

Image

Image

Expected Behavior

Independent of the "xstep.cascade.unit", OCCT should correctly import the geometry from the given STEP file.

Actually, it is only working with the following units for the provided STEP file:

  • INCH - inch
  • MIL - milliinch
  • UIN - microinch
  • CM - centimetre
  • MM - millimetre
  • UM - micrometre

Actual Behavior

see my comments above

Sample Code or DRAW Tcl Script

pload ALL

param xstep.cascade.unit MM
ReadStep D [locate_data_file multi_solids.stp]
# File STEP to read : /home/bernhard/Shared/bos/45226_step_import_cm/multi_solids.stp
# Document saved with name D
XGetOneShape a D
vinit
vdisplay a
vfit
bounding a -dump
# Axes-aligned bounding box
# X-range: -31.975459667726181 101.93416041481758
# Y-range: -79.027293612043579 43.863713731452073
# Z-range: -16.554082429459584 35.138490205886491

param xstep.cascade.unit M
ReadStep E [locate_data_file multi_solids.stp]
# File STEP to read : /home/bernhard/Shared/bos/45226_step_import_cm/multi_solids.stp
# Document saved with name E
XGetOneShape b E
vinit
vdisplay b
vfit
bounding b -dump
# Axes-aligned bounding box
# X-range: -1e+100 1e+100
# Y-range: -1e+100 1e+100
# Z-range: -1e+100 1e+100
# Finite part
# X-range: -0.02003913202440074 0.089799471907124742
# Y-range: -0.07902451695281075 0.043860937072219226
# Z-range: -0.014049934531451954 0.021795381331441693

Operating System

Linux

Compiler

GCC

Bitness

64-bit

OCCT Version

7.9.0

Additional Files

No response

Metadata

Metadata

Labels

0. NewThe issue was created, but not updated by maintainer. Waiting for updates labels and categories1. Data ExchangeImport/Export or iterating of the CAD data2. BugSomething isn't working

Type

No type

Projects

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions