TopoDS_Shape shape;
BRep_Builder builder;
std::ifstream f("C:\\path\\to\\file.brep");
BRepTools::Read(shape, f, builder);
for (TopExp_Explorer fExp(shape, TopAbs_FACE); fExp.More(); fExp.Next())
{
TopoDS_Face face = TopoDS::Face(fExp.Current());
gp_Vec dir(0, -1, -0);
gp_Pnt cylLocOnPlane(800, 625, 183);
gp_Ax2 xdir(cylLocOnPlane, dir.Reversed());
double multiplier = 0.75000000000002087;
gp_GTrsf x_aff;
x_aff.SetAffinity(xdir, multiplier);
BRepBuilderAPI_GTransform aBRepGTrsf(face, x_aff);
auto result = TopoDS::Face(aBRepGTrsf.Shape());
}
Description
Steps to reproduce:
stretchError.zip
Expected Behavior
No construction error
Actual Behavior
Construction error
Sample Code or DRAW Tcl Script
Operating System
Windows
Compiler
MSVC
Bitness
64-bit
OCCT Version
7.9
Additional Files
No response