View Issue Details

IDProjectCategoryView StatusLast Update
0026499CommunityOCCT:Modeling Algorithmspublic2024-07-16 02:11
Reporterjcthomas Assigned Tojgv 
PrioritynormalSeveritycrash 
Status newResolutionopen 
PlatformPCOSWindows 7 
Product Version6.8.0 
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

  • tube.step (1,889,308 bytes)

Activities

jcthomas

2015-07-30 16:04

reporter  

tube.step (1,889,308 bytes)

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