DiscussionsIssue archiveOther usage issues

Forum archive

Other usage issues

Technical discussions preserved from the public OCCT community forum.

Topics
5,359
Replies
16,480
Files
825

Discussions

Page 15 of 90

Showing 60 discussions, ordered by the latest archived activity.

offset curve direction

I can't believe it. The documentation of Geom_OffsetCurve says: "The Offset curve is in the direction of the normal N defined with the cross product V^T where the vector T is given by the first derivative on the basis curve with non zero length" (V is the reference direction). In the code the cross

1 reply

Need help on Step file Import to opencascade

i created an assembly and saved as step file. When i imported step file in to opencascade using ImportExport its showing as single part. I want to separate the components of the assembly in opencascade but the assembly is converted in to single part. Please help me, how can i make the components of

1 reply

Display dynamic (changing) graphics

Hello, I have to display 3d points that are generated dynamically (anytime some input device is moved). So I've created a class inheriting AIS_InteractiveObject and redefined Compute(Handle_PrsMgr_PresentationManager3d, Handle_Prs3d_Presentation, ...) method. This sub-class relies on a Graphic3d_Arr

3 replies

Do i need to free the memory

Handle(AIS_Shape) body= new AIS_Shape(S); should i use "delete body" to free the memory?

2 replies

Drawing voxels problem - VoxelClient_VisDrawer

Hello. I have successfully tested the "voxeldemo" sample, located in the samples folder of OCC6.6, but now I am trying to create my own code to draw voxels but the next function in VoxelClient_VisDrawer is failing: static OpenGl_Element* VisDrawerCallBack (const Graphic3d_CUserDraw* theUserDraw) { i

8 replies

BRepFeat_SplitShape problem

Hi, I use a plane to split a TopoDS_Face in my project. Most of the time following code works fine except few faces. I've exported one such face in STEP file and attached here. I'm using OCC 6.5.3 version for this sample code. The error comes in source file "locope_splitshape.cxx". "AddOpenWire" fun

3 replies1 file

How to compile OCC test example by cmake and gcc

Hello, everyone, I have installed Opencascads 6.5.0 on my Ubuntu 12.04 LTS 64 bit system. My gcc version is 4.6.3. The opencascade header file is in /usr/include/opencascade/, and the libs is in /usr/lib/opencas/. I have the following test example, and I want to write a CMakeLists.txt file and use c

3 replies

External render or new engine

Hi, guys ! I want to start working under plugin creation for generating realistic images for OCC scenes (shadows, lights, specular and other cool things). Does anybody working around and what you are think: use some opensource renders or make new engine with GL3.0 spec?

12 replies1 file

how to investigate TopoDS_edge

Hi everyone. I have a TopoDS_edge exported from IGES file. Is there a way to know the type of this Edge? Arc, line, etc.? And if yes, how will I can get points of that edge besides first and last? Best regards, Max.

2 replies

Intersection between a curve and a face (or a surface)

I need an algorithm which finds intersection points and common segments between a curve and a face. I have done some navigation about this topic, in the forum and in the documentation, but none of the classes I have found seem satisfying: --- IntCurvesFace_Intersector and IntCurvesFace_ShapeIntersec

4 replies

Trimmed surfaces and their theory

Hello dear OpenCascade community, this question is rather concerned with the theory of trimmed surfaces than their actual implementation, but since there are a bunch of smart people here, I dare to ask :) Let's say we have a parametric surface whose parameters are u and v, and we want to trim this s

2 replies

Need Help on OpenCascade..Urgent!!!!!!!!!!!!!!!!!

We have created a small Assembly with 2 components in CATIA and exported it as a STEP file and imported it to OpenCascade ImportExport Window, but as the imported file is a step file it has lost all the assembly constraints and parametric relations. So can we constraint two components in Open Cascad

3 replies

Looking for the implementation of Geom2dInt_GInter class

Hello everyone, I am trying to find the implementation of Geom2dInt_GInter class. The thing is that I can find its header file with the constructors and its methods, but the implementation of the methods I cannot find. I tried grep to find more information, but did not succeed. Thank you for any hel

2 replies

Creating BRep Curve from TopoDS Edge fails

Hello, I need the x,y,z coordinates of edges of a Compound. I use TopExp_Explorer to iterate thru all edges and than use BRep_Tool::Curve on each edge to extract curve points. Now I have a STEP file which contains two short edges. If I use the BRep_Tool::Curve on these edges the parameters first and

5 replies

Real time usability

Would the response time for the Open Cascade library be quick enough for a real time modeling of live data? For example a QuadCopter gyro telemetry data in real time back to the process machine? Still working out the possible data volume and transmission delay. Thoughts? David Author Houston Texas

2 replies

Is BRepFilletAPI_MakeFillet reentrant ?

Hello, I am experiencing crashes with BRepFilletAPI_MakeFillet in multi-threading context. My program runs N threads, each performing a fillet on some shape with its own BRepFilletAPI_MakeFillet instance. I expect BRepFilletAPI_MakeFillet to be reentrant, in the sense of the Qt definition: « A class

4 replies

boundary curve(loops) of a face

Hi friends. I am building a c++ program which reads an iges files and outputs all the points corresponding to each face in UV coordinates. I am able to get all the faces and the surfaces corresponding to each face. Can you please tell me how to get the boundary curve(loop) of face and also how to ge

2 replies

Cut a Face with a Curve

Hi All, I posted somethings about this issue, but I had no success, yet. So, my problems is: I have a Face with 2 Holes (face.brep that comes with OCC). I also have a curve laying down this face perpendicularly. My goal is to split this face in 2 faces using the curve. I've tried to solve this probl

26 replies1 file

how to traversal adjacency face?

Hello all! TopExp_Explorer is used to traversal in TopoDS_Shape. But how to traversal with any specific condition? For example, I create a Box by BRepPrimAPI_MakeBox and i want to get all the faces that adjacency to the right-face which should contain top-face, front-face, bottom-face and back-face.

1 reply

Attention: Significant side effects in OCAF/XDE 6.6.0

This can be important enough - I had to spend a few hours analyzing and resolving this issue, while porting to 6.6.0. Hence this repost of the blog post here on the forum. See more details in http://opencascade.blogspot.com/2013/06/significant-side-effects-in-ocaf... Would be good to have follow up

0 replies

Solid from Multiple profiles with a Spine (CATIA equivalent: MultiSectionsVolume)

Good Day, i want to create a Solid with multiple Sections which are NOT on a straight line. the sections are all different too: e.g. 2 circles, one rectangle. in addition i want to specify a spine for the created solid (like it is possible with the BRepOffsetAPI_MakePipe). is there a way to define a

4 replies

Find a bug of OCC6.6.0

I try to the new OCC 6.6.0,and recompile all file with vs2008,But I find a bug of texture like these: 1.SetBackgroundImage of V3d_View does not work. 2.AIS_TexturedShape can't set texture file (*.BMP or GIF),Also does not work. And I have find out the cause: Because OCC 6.6.0 use the freeimage, and

3 replies

Resolving Missing Surfaces in FreeCAD

Linux Ubuntu 12.04.1 FreeCAD 0.13 rev 1830 (GR) OpenCASCADE: libopencascade-ocaf-6.5.0 6.5.0.dsfg-2build1 libopencascade-ocaf-lite-6.5.0 6.5.0.dsfg-2build1 FreeCAD is using the two files listed above. Above an unknown level of complexity, the Boolean operations leave missing surfaces. I'd like to cr

3 replies

Common sample

Hi, why does samples/qt/common not contain a main method? It is the only sample that shows using a cocoa window on mac thanks:)

1 reply

Find whose name is "Rob Bachrach "

sorry to bother you. I have read the question http://www.opencascade.org/org/forum/thread_8220/?forum=3 and http://www.opencascade.org/org/forum/thread_5436/?forum=3 . From there, I know that you have done some works about intersection between a line and a face(many faces). You mentioned that before

1 reply

how to edit *.IGES file

Hello! I just learn opencascade ,I found that it can import the *.IGES file.but I don't know how to edit this file ,so I need your help. Thank you.

1 reply

Overview and description of OCC modules/toolkits

Hello, is there a description of the modules/toolkits shipped with OpenCascade somewhere? For example names like TKBO are not self-explaining. A few sentences what the module can be used for would be great. Has anyone found anything like that? The documentation does not give an overview as far as I

1 reply

Wiki post related to building/learning OCCT

Hello, everyone, I learn OpenCASCADE now and I've started wiki page related to it here: http://opencascade.wikidot.com/temporary-name-0001 Any comments/contributions would be highly appreciated. Thanks Dmitry.

1 reply

How to order a wire

Hello, I have a wire from the "OuterWire" of one face of a solid and when I convert its edges in a readable format I get that the Edges are not ordered. I think this is because the edges are shared between the faces of the shape. But, How can I order the edges of the wire ? I have tried to do it wit

1 reply

Question about Edge orientation

Hello, I have build an Edge and I have tried to reverse it but the only thing that changes is the orientation flag. TopoDS_Edge aEdge = BRepBuilderAPI_MakeEdge(gp_Pnt(0.,0.,0.),gp_Pnt(100 ,0.,0.)); BRepAdaptor_Curve ac1(aEdge); double a=ac1.Line().Angle(gp_Lin(gp::OX())); -->angle = 0 double Umin =

2 replies

Surface invisible after BRepFeat_SplitShape

Hi, I use a plane to split a TopoDS_Face in my project. Most of the time following code works fine except few faces. I've exported one such face in STEP file and attached here. I'm using OCC 6.5.3 version for this sample code. For this particular face the split works but splitted faces are invisible

10 replies

Crash on NCollection_BaseAllocator::Free

I use OCCT6.6 in my mfc project. Boolean operatoions are used, the codes are like this: TopoDS_Shape box1 = BRepPrimAPI_MakeBox(30, 30, 30); TopoDS_Shape box2 = BRepPrimAPI_MakeBox(gp_Pnt(0, 0, 10), 30, 30, 10); box1 = BRepAlgoAPI_Cut(box1, box2); a crash cased in BRepAlgoAPI_Cut which comes from NC

13 replies

Doxygen problems with handles

Hi, when creating documentation for my source code with doxygen I quite often recognize that doxygen has problems with handles. For example this declaration Handle(TColgp_HArray1OfPnt2d) HandleOutputPoints( std::vector Points); causes the error message Found ';' while parsing initializer list! (doxy

3 replies

selection rectangle

hi, would you give me an advice to solve the following problem: i cannot find a method to erase the previous state of selection rectangle, when it is dynamically resized. i have checked it also on oc sample application (attached image), but it is the same. i'm using oc version 5.2. best regards, Aut

2 replies

Get names from STEP file.

Hi guys, I have a STEP file which contains two solid shapes. One is named as "test", another named as "Boss-Extrude1". In SolidWorks2010, it can read all solid shapes' name. But in my OCC6.5.3, I can only read the compound shape "Assemb1" and compound shape "Part1". The hierarchy of the step file se

5 replies

why the boolean operation BRepAlgo_Cut throws a TopoDS_FrozenShape exception.

this is what my codes look like: TopoDS_Shape box1 = BRepPrimAPI_MakeBox(30, 30, 30); TopoDS_Shape box2 = BRepPrimAPI_MakeBox(gp_Pnt(0, 0, 10), 30, 30, 10); TopoDS_Shape box3 = BRepPrimAPI_MakeBox(gp_Pnt(10, 0, 0), 10, 30, 30); box1 = BRepAlgo_Cut(box1, box2); box1 = BRepAlgo_Cut(box1, box3);// the

3 replies

Not able to create a face from nonPlanar wire

I am creating a single connected wire from multiple trimmed face and tried to create face out of that the code snippet is as belows. (Note:- works fine for planar surfaces) BRepBuilderAPI_MakeWire wire; //Iterates through each face and adds the outer wire to the BRepBuilderAPI_MakeWire while (trimme

7 replies

XSDRAWSTLVRML_DataSource in serious need of refactoring

I'd like to suggest to refactor the XSDRAWSTLVRML_DataSource to be included in either the STLMesh or MeshVS toolkit, for the following reasons: 1) the STLMesh converts a triangular mesh to nurbs facets, which is a really poor idea: its an incredible overhead and incurs massive overhead. Worst of all

1 reply

Forced DeviationCoefficient in AIS_Circle

Hello, I need to improve the drawing quality of AIS_Circle entities. I have found the MyContext->SetDeviationCoefficient() method to do this, but in AIS_Circle that coefficient is forced to 1.e-5. See the code below from AIS_circle.cxx //==============================================================

1 reply

"failed to create emty document" error msg when creating DialogBar

I'd like to add Diagbar in SDI Document in MFC. (it's basic MFC document , just add to opencascade ) I just added Dialogbar named "IDD_DIALOGBAR_3" in Resouece View. -- Header File --- CDialogBar m_wndDialogbar; -- Source File--- if ( !m_wndDialogbar.Create( this, IDD_DIALOGBAR_3, CBRS_RIGHT | CBRS_

1 reply

Handle_Graphic3d_WNTGraphicDevice in 6.60

Hi can anyone help me in the best way to convert legacy code for the removal of Handle_Graphic3d_WNTGraphicDevice.hxx. Handle_Graphic3d_WNTGraphicDevice activeGraphicDevice ; // updating from 6.5.3 to 6.6.0

4 replies

How to reduce Display objects in v3d_View

I'd like to dispaly millions of points in V3d_View The related codes is like the belows. Handle_AIS_InteractiveContext AISObject; for(i=1; i { nIdx += 1; gp_Pnt PosPt(m_adToolPos[nIdx], m_adToolPos[nIdx+1], m_adToolPos[nIdx+2]); Handle(ISession_Point) PathLine=new ISession_Point(PosPt); AISObject->D

2 replies

Inside/Outside Solid.

Is there a way of quickly testing if a point ( x,y,z ) lies inside or outside a model. Thanks

6 replies

floating-point exception in Release version when performing Booleans

I'm using BRepAlgoAPI_Common to find the common geometry between a step file and some boxes I make using BRepPrimAPI_MakeBox, and then rotated into place using gp_Trsf. Everything works fine when I compile in Debug mode, but in release, I get a floating point exception. I think TKBO.dll is throwing

1 reply

Problem with FSD_File

Hi all, I use the following code for writing files: IFSelect_ReturnStatus result = IFSelect_RetFail; if (!theViewer.IsNull()) { if (!theViewer->GetRoot().IsNull()) { Handle_Im_Scene myRoot = theViewer->GetRoot(); Standard_Integer nbEntries = myRoot->NbChildren(); FSD_File f; Handle(ShapeSchema) s =

10 replies

BRepAlgoAPI_Common Bug?

Dear everyone, The following result in OCC 6.5.3. Draw Test: pload ALL polyline l 0 0 0 0 5 0 0 5 5 0 3 5 0 3 3 0 2 3 0 2 5 0 0 5 0 0 0 mkplane sf l prism s sf 5 0 0 polyline w1 -2 2.5 2 7 2.5 2 7 7 2 -2 7 2 -2 2.5 2 mkplane f1 w1 bop s f1 bopcommon c1 ttranslate c1 0 0 9 polyline w2 -2 2.5 3 7 2.5

3 replies1 file

the result of bopsection(BRepAlgoAPI_Section)

Dear everyone. Tried Draw Test; pload ALL stepread SectionTest.step"attached file" com Mode (0 End, 1 root n0 1, 2 one root/n0, 3 one entity/n0, 4 Selection) : 1 Mode (0 End, 1 root n0 1, 2 one root/n0, 3 one entity/n0, 4 Selection) : 0 explode com_1 section so com_1_1 com_1_2 explode so lprops so_1

1 reply

viewer on mac

Hi, I am trying to view something with opencascade on mac, unfortunately I cannot find any examples of the occ viewer or opengl or anything that works on mac. The qt examples in occ/samples/qt all have the familiar error's connected to the mac. For example device = new Graphic3d_WNTGraphicDevice();

4 replies

Small error in curve length calculation

Hello everyone. I was creating a Bezier curve with control points (1,0) (1,1) (0,1) and then calculated the length of the curve by calculating the mass by BRepGProp::LinearProperties . However, if I compare the analytical curve length with the numerical one, there is an error between the two of them

5 replies