DiscussionsIssue archiveOCCT:Data Exchange

Archived issue #0022238

Bug during step file importation

CommunityOCCT:Data Exchangeclosed3 public notes

Search issues

Description

The description copied from forum. Step file is attached.
==========================================================
Hi, I'm importing the attached STEP file. The result ought to be a circularly
trimmed plane, translated along its normal vector by 2.0 units. But actually the
plane's normal is still pointing along the z axis, but the translation is done
along the x axis!

In line 104 of Attachment 2 (STP), the translation is defined
#77=CARTESIAN_POINT('S2->Labor',(0.,0.,2.));
After importing the STEP file in OCC, I took a look at the transformations. The
plane's root compound shape reports as the translational part of its TopLoc_Location
Position(-2, -0, -0)
the TopLoc_Location's rotation matrix on the other hand has rows
Row 1(1, 0, 0)
Row 2(0, 1, 0)
Row 3(0, 0, 1)
So obviously the directions x and z are not swapped.
The TopLoc_Location contains only a single Datum3d object and the coumpound
shape has no superior node, which could be responsible for a xz-swap.

When I re-export the file from Open CASCADE to STEP again, it prompts a line
#0000016 = CARTESIAN_POINT('',(-2,,0,E+000,0,E+000));

Rhino3d and other CAD programs are correctly importing the file (resulting in a
circular trimmed plane, translated along it's normal vector by 2.0 units)

Public activity

3 archived notes

Participants are labeled by their role within this record.

01Commenter 1
After analysis initial file Attachment 2 (STP) in different systems such as:
"Rhinoceros 4.0(Evaluation version)",
"Creo Elements/Direct Modeling Personal Edition 3.0"
was found that assembly for this case was translated incorrectly.
Attached corrected file performs translation of assembly the same way as tools
listed above.
02Commenter 2
Dear Igor.

Could you please add this case in the test base because this case is special and
it differs from all existent test cases.
03Commenter 3
Dear Commenter 1,
Workbench KAS:dev:OCC22238-v1-opt has been created from
Attachment 1 (CXX) and compiled on Linux platform.
There are following regressions(/differences) in OCC22238-v1-opt regarding to
KAS:dev:products-20110428-opt

Regressions were not found.

See results in /KASDev/OCCTtests/KAS/dev/OCC22238-v1-opt_13052011/lin
See reference results in
/QADisk/occttests/results/KAS/dev/products-20110428-opt_29042011/lin
See test cases in /QADisk/occttests/tests/ED
N.B. In order to launch testing case you can make use the following instructions
http://sbu.nnov.opencascade.com/maintenance/main_certification_te.htm