MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0026499Community[OCCT] OCCT:Modeling Algorithmspublic2015-07-30 16:042015-08-11 16:57
Reporterjcthomas 
Assigned Tojgv 
PrioritynormalSeveritycrash 
StatusnewResolutionopen 
PlatformPCOSWindows 7OS VersionSP1
Product Version[OCCT] 6.8.0 
Target VersionFixed in Version 
Summary0026499: Crash when applying a transformation from a gp_GTrsf on a step model
DescriptionWhen trying to apply this transformation

0.0000 0.0000 1.0000 301.7354
0.9848 0.1736 0.0000 270.4476
0.1736 0.9848 0.0000 276.5281
0 0 0 1.0000

with a gp_GTrsf instance, on all the components of a step model, a Standard_ConstructionError is raised, crashing the whole application.



Steps To Reproduce// Load the step file that is attached to this ticket.

// Create a gp_GTrsf that corresponds to this transformation matrix :
// 0.0000 0.0000 1.0000 301.7354
// 0.9848 0.1736 0.0000 270.4476
// 0.1736 0.9848 0.0000 276.5281
// 0 0 0 1.0000

gp_GTrsf matOCC;
matOCC.SetValue(1, 1, 0);
matOCC.SetValue(1, 2, 0);
matOCC.SetValue(1, 3, 1);
matOCC.SetValue(1, 4, 301.7354);

matOCC.SetValue(2, 1, 0.9848);
matOCC.SetValue(2, 2, 0.1736);
matOCC.SetValue(2, 3, 0);
matOCC.SetValue(2, 4, 270.4476);

matOCC.SetValue(3, 1, 0.1736);
matOCC.SetValue(3, 2, 0.9848);
matOCC.SetValue(3, 3, 0);
matOCC.SetValue(3, 4, 276.5281);

// For all the TopoDS_Shape instances extracted from the step model
// apply the transformation

BRepBuilderAPI_GTransform transfOCC(matOCC);
transfOCC.Perform(shape);
shape = transfOCC.Shape();
Additional information
and documentation updates
It does not crash with a gp_Trsf instance, but we cannot use it as we allow non uniform scaling in our software.
TagsNo tags attached.
Test case number
Attached Files? file icon tube.step (1,889,308 bytes) 2015-07-30 16:04

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2015-07-30 16:04 jcthomas New Issue
2015-07-30 16:04 jcthomas Assigned To => szy
2015-07-30 16:04 jcthomas File Added: tube.step
2015-08-11 16:57 szy Assigned To szy => jgv
2015-08-11 16:57 szy Category OCCT:Application Framework => OCCT:Modeling Algorithms


Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker