Skip to content

BRepBuilderAPI_GTransform face stretch crash (Standard_ConstructionError) #872

@36mb

Description

@36mb

Description

Steps to reproduce:

  1. Download brep file from here (or attachment:)

stretchError.zip

  1. Use code below (with your brep file path):

Expected Behavior

No construction error

Actual Behavior

Construction error

Image

Sample Code or DRAW Tcl Script


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());
}

Operating System

Windows

Compiler

MSVC

Bitness

64-bit

OCCT Version

7.9

Additional Files

No response

Metadata

Metadata

Assignees

Labels

0. NewThe issue was created, but not updated by maintainer. Waiting for updates labels and categories1. ModelingBoolean operations, offsets, primitives, any conversion, brep builders and etc...2. BugSomething isn't working

Type

No type

Projects

Status

Closed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions