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
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
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
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
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
To reproduce : Draw a sphere cut it in 2 semi-spheres by a vertical plane erase one of them mirror the other to replace the erased one (you'll get a sphere composed by 2 separate semi-spheres) fuse them (you'll get a new sphere) use ShapeUpgrade_UnifySameDomain(sphere, false, true, false) to unify t
Can opencascade make a revolution surface between angle_1 and angle_2? For example: make a revolution surface between 0 and 30 degree. For now opencascade make revolution surface from 0 to 360 degree.
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
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?
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.
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
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
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
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
Hi All, I want to do parallel projection of a polygon wire on a shape(a sewed shape from more than one faces) and get a projected shape/face out of it. I used BRepProj_Projection but it did not work for me. Can you suggest something??
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
Hi How can I create the offset from a solid with different offset values on different faces. BRepOffsetAPI_MakeOffsetShape doesn't have the option for that. Thanks. Sean
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
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
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
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
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.
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
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
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
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
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
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
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.
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
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 =
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
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
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
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
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
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
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
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 //==============================================================
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_
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
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
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
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 =
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();
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