MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0030998Community[OCCT] OCCT:Data Exchangepublic2019-09-25 15:412019-09-25 22:08
ReporterVico Liang 
Assigned Togka 
PrioritynormalSeverityblock 
StatusnewResolutionopen 
PlatformOSOS Version
Product Version[OCCT] 7.4.0 
Target Version[OCCT] 7.5.0*Fixed in Version 
Summary0030998: STEPCAFControl_Writer will not export shape with Identity Location if there are other partner shapes with diff Location.
Descriptionconst Handle(ADVOCCT_OCAFApplication)& aApplication = getGlobalApplication();
Handle(TDocStd_Document) aXCAFDocument;
aApplication->NewDocument("BinXCAF", aXCAFDocument);
XCAFDoc_DocumentTool::Set(aXCAFDocument->Main());
Handle(XCAFDoc_ShapeTool) aShapeTool = XCAFDoc_DocumentTool::ShapeTool(aXCAFDocument->Main());
Handle(XCAFDoc_ColorTool) aColorTool = XCAFDoc_DocumentTool::ColorTool(aXCAFDocument->Main());

for(auto aIter= theGlobalObjectList; aIter->More(); aIter->Next())
{
     TDF_Label aNewShape = aShapeTool->AddShape(aIter->Shape(), Standard_False, Standard_False);
     Quantity_Color aColor(Quantity_NameOfColor(aIter->ColorLive()));
     aColorTool->SetColor(aNewShape, aColor, XCAFDoc_ColorGen);
     TDataStd_Name::Set(aNewShape, aIter->Name());
}

// Write out
STEPCAFControl_Writer aXCAFWriter;
aXCAFWriter.SetNameMode(Standard_True);
aXCAFWriter.SetColorMode(Standard_True);
aXCAFWriter.Transfer(aXCAFDocument);
aXCAFWriter.Write(theFilePath);
aApplication->Close(aXCAFDocument);


The uploaded files contain input file: "export missing origin object.brep"
and output file: "export missing origin object.step"

NOTE: IGESCAFControl_Writer has the same issue.
TagsNo tags attached.
Test case number
Attached Files? file icon export missing origin object.brep (15,284 bytes) 2019-09-25 15:42
? file icon export missing origin object.step (7,826 bytes) 2019-09-25 15:42
jpg file icon before export in brep.jpg (404,490 bytes) 2019-09-25 15:46
jpg file icon after export in step.jpg (558,869 bytes) 2019-09-25 15:46

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2019-09-25 15:41 Vico Liang New Issue
2019-09-25 15:41 Vico Liang Assigned To => gka
2019-09-25 15:42 Vico Liang File Added: export missing origin object.brep
2019-09-25 15:42 Vico Liang File Added: export missing origin object.step
2019-09-25 15:46 Vico Liang File Added: before export in brep.jpg
2019-09-25 15:46 Vico Liang File Added: after export in step.jpg
2019-09-25 15:48 Vico Liang Description Updated View Revisions
2019-09-25 15:52 Vico Liang Description Updated View Revisions
2019-09-25 15:52 Vico Liang Product Version => 7.4.0
2019-09-25 15:52 Vico Liang Target Version 7.5.0* => 7.4.0
2019-09-25 15:52 Vico Liang Description Updated View Revisions
2019-09-25 22:08 abv Target Version 7.4.0 => 7.5.0*


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker