DiscussionsIssue archiveModeling Data and Algorithms

Forum archive

Modeling Data and Algorithms

Technical discussions preserved from the public OCCT community forum.

Topics
968
Replies
2,403
Files
1,051

Discussions

Page 17 of 17

Showing 8 discussions, ordered by the latest archived activity.

Thread safety

I am running OCCT in a multithreaded environment. When I am running boolean operations on multiple threads (and by this I don't mean the runParallel option of BRepAlgoAPI_Algo), I experience crashes, despite there are no shared data between those threads (I make copies of the shapes, for every threa

21 replies

Bug in Geom_BSplineCurve?

I created non-rational BSpline curve m_geomBSpline = new Geom_BSplineCurve(Poles, Knots, Mults, degree); and then added a weight m_geomBSpline->SetWeight(2,0.5); After that I received an error in BSplCLib::BuildCache in code for (ii = 1 ; ii CacheWeights(ii) = dc.poles[LocalIndex] * LocalValue ; Loc

2 replies

Geom2dAPI_InterCurveCurve with Geom2d_OffsetCurve

Hello, I've got an issue when using Geom2dAPI_InterCurveCurve with Geom2d_OffsetCurve. This is a simplified version of what I'm doing: am I missing something? Handle( Geom2d_Line ) hLine1 = new Geom2d_Line( gp_Pnt2d( 1.0, 0.0 ), gp_Dir2d( 0.0, 1.0 ) ); Handle( Geom2d_Line ) hLine2 = new Geom2d_Line(

2 replies

Build a tiny box with BRepPrimAPI_MakeBox

Due to the default tolerance of 1e-7, we cannot build a tiny box whose size is smaller than the tolerance with BRepPrimAPI_MakeBox function. However, when I set the tolerance smaller, I cannot do it also. Please check if it is a bug or what I did is not right. BRepBuilderAPI::Precision(1e-10); BRepP

1 reply

Sewing and XCAF

This topic is actually not pure Modeling topic, while Modeling and Data Exchange issue. The problem I recently met lies in reconstructing the attributes assignment of the subshapes in the sewed model. Basically, the following example: I import the model, which contains only faces (no shell, no solid

2 replies

Simplifying Shape

Hello Team, I have some shell which has a lot of faces on the same plane ( like chess cells 8x8 ). I try to use ShapeUpgrade_UnifySameDomain, but without success. Could you say what is wrong or advise another way to simplify shell. Thanks in advance. With respects, Author. Here my code below: ShapeU

2 replies

Microsoft C++ exception: Standard_Failure at memory location 0x003ef018

I am working with the BRepFilletAPI_MakeFillet class. here is my code:- BRepFilletAPI_MakeFillet mkFillet(theShape); mkFillet.Add(2.2,theEdge); try{ mkFillet.Build(); } catch(Standard_Failure ex){ ///********************** } catch(...){ return; } the program is breaking after executing this line :-

4 replies

Bezier Curves

I just a short but fundamental question: Are Bezier curves with duplicate poles considered valid? example: beziercurve res 4 0 1 0 0 1 0 1 2 0 2 2 0

3 replies