I have compiled Open CASCADE with vs 2005. My projects runs well under vs 2005. But if i activate the intel c++-compiler i get some compiler errors. TopoDS_Shape sp = BRepPrimAPI_MakeCylinder(gp_Ax2(gp_Pnt(-a1/2.0,z0,x0),gp_Dir(1,0,0)),r,a1); is not compiled. I get the error: Error 12 error: no suit
Can anyone help me to get QT version 2.0.3 or 3.3.3 as mentioned in OpenCASCADE documentation for demo programs? There are only minor and major versions on the ftp server of Trolltech.
http://img80.imageshack.us/img80/9969/jaggededgesff9.jpg As you can see on the picture, somtimes some edges are shown strangely. Does somebody know what's the reason for this mess? In the OCC samples there's no such problem. It doesn't matter if antialiasing of the view is on or off. I have seen thi
Hi Everyone, After spending some time setting up my workbench and trying out various wok commands, I tried to create my own package in CDL. I was immediately confronted with the problem of making the OCC packages accessible from my WB. I gather that the unimplemented 'pinstall' is intended for that
hello I want to calculate and display each nodes and normal for each triangle. What is the easiest way to get the normal of each triangle? Here's the code I'm using to tesselate and display the TopoDS_Shape: BRepMesh::Mesh(tshape,1); BRep_Builder builder; TopoDS_Compound Comp; builder.MakeCompound(C
Hi all, I've done my first steps with MeshVS and have some problems. Here's what I do: 1) build a MeshVS Handle(Im_MeshDataSource) aDS = new Im_MeshDataSource(theMesh); Handle(MeshVS_Mesh) aMesh = new MeshVS_Mesh(); aMesh->SetDataSource(aDS); aMesh->AddBuilder(new MeshVS_MeshPrsBuilder(aMesh.operato
Currently, I can make a cone with circular base or a prism with a elliptical base. But if I want to make a cone which has elliptical base, for example, given hight, bottom radii and top major radius, how do I make such a geometry in OCC? Thank you in advance! Author
Hi all! I'm new in mfc programming and i have a problem. I'm trying to display the x,y coordinates of the mouse while the cursor is in the drawing area but i don't know how. how could i do it? any idea or suggestion?? thanks
hello there, i'm trying to make a Geom_BSplineSurface with the sandart constructor. here is what i got so far: //////////////////////////////////////////////////// Handle (Geom_BSplineSurface) hFace = new Geom_BSplineSurface(CP_OCC, Gewichte_OCC, uKnots_OCC, vKnots_OCC, uMulti_OCC, vMulti_OCC, Nurbs
HI everyone I find that in the frame wnd created by the OCAF Appwizard the object can be displayed just in a limited rectangle,just in the left and bottom of the wnd.I want to display the object all the wnd of user,but I can't find the right parameters to modify.If someone know the method please hel
Hello all... Currently I am working in Viewer3D wizard provided by open cascade...Now I want to switch to Dialog Based Application..Is it possible to draw the things in Dialog Window...Till now i have drawn in Document/View....
I just downloaded open cascade, and I'm looking forward to experimenting with the package. However, It would make things easier if I could see a few sample applications demonstrating usage of the basic classes defined within it. Anyone wo could point me to example sources or email them, please do so
Hi, I display a Shape (myShape) using an AIS_Shape (myAISShape) in a context (myInteractiveContext) I open a local context for selection of TopoDS_Face, as shown in OCC documentation. Then I get the selected faces using that kind of code : for (myInteractiveContext->InitSelected(); myInteractiveCont
Hi, I guess my question is simple, but I could not find a way to do this. I want to find the coordinates of the vertices of TopoDS_Shape. Can anyone help me to do so. Thanks a lot!!
Hello, I am trying to use following code: TopoDS_Shape cut_shape = BRepAlgoAPI_Cut(*from_shape, *tool_shape); After that, I want to compare if cut_shape and *from_shape are the same, meaning, from_shape didn't get cut. In the case of not cutting case, both TopoDS_Shape::IsSame() and TopoDS_Shape::Is
Dear community I'm new to open cascade so first... hello. my problem: I have a nurbs surface in my existing programm (MFC C++ V8) and just want to have a iges file from my surface. So i wanna use OCC only to "transform" my control points, u params, etc. TO an iges file which i could give to CAD syst
Hi! I guess my question is really easy, but I can't find a method to retrieve the coordinates of a TopoDS_Vertex. Can anyone pls tell my how to access them? Best regards, Author
We have two Handle_Geom_BSplineCurve(s), and We guess they are from the same bspline curve, but take different parameter ranges, such as [0,0.5], [0.5,1.0]. How to judge it?
Hi, I try to obtain the colors from a IGES file. First I read the IGES file using IGESCAFControl_Reader, but there is a error of debugging when I try to transfer le Doc(type of Handle(TDocStd_Document)).I use Visual Studio 2005 code ===================================== IGESCAFControl_Reader Reader;
Hello, I have built some models using opencascade, and exported them to STL format. I found two problems in the files: 1. The files contained triangles that had two coincident vertices, and their normals were set to (0,0,0). I made another version of the STL file, by deleting the invalid triangles f
Hi All, Can OpenCASCADE fully suffice the requirements to make a full blown Analysis application using its meshing and topology features or are there any advance modules that have to be purchased from OCC without which things cannot work?
Hello, I have a finite line which lies on a plane parallel to the XY-plane. I need to project this line on a surface and get the normals of the surface along the projected line. (The whole surface is between the XY-plane and the line-plane). Currently I have an algorithm which works, but it's VERY s
Hello, I am looking for a function to create 3d Text objects. The function should get gp_Pnt and gp_Dir and construct a compound of letters. I have seen the Draw_Text3D and Prs3d_Text classes however they only draw the text and I want to get a TopoDS_Compound. Any ideas? Thank you guys.
Hi, As I've said here before, I'm working on a project that's using OpenCascade for some representation functionalities. We are using Qt4.3. I am experiencing this problem on 3 machines. The first one is crashing when I close the program by a segfault (ubuntu edgy). The second one is my laptop and s
Hi, I'm using BRep_Tool::Continuity to find all C0 continuous edges between faces in a solid. What strikes me odd is that coplanar faces are recognized as only C0 continuous. Could this be a bug? Cheers, Author
Hello All.. How to arrange spheres around the circle(in circular fashion)...It should look like rollers placed in ball bearing..we have x,y,z value for initial sphere(ball)..how to change the value of x,y,z for next spheres so that it is arranged in circular fashion...please tell the formula for dra
Hello, I'm trying to project a streight line on a shell. The problem is, that the closest thing i found is: projecting a line on a surface by extruding the line to a plane, and intersecting the plane with the surface. As you know, a shell is a topological being, that is made of faces, which are usua
I try to update to OCC610 but I have a problem with the TopLoc Package. I still have an unresolved link concerning Handle_TopLoc_SListNodeOfSListOfItemLocation. I have nevertheless includes TKMath.lib
hi to all, can any one tell me how can i create a involute gear in opencascade other parameters of the gear such as module, addendum, dedendum etc. already known.. thanks in advance
Hi I'm reading the OCAF documentation and I would like to understand how create new command for my OCAF enhanced application. Which are the basic step to set up a simple command?
Hi, I have a TopoDS_Shape and need to get the point on the surface of the shape with the lowest x-value. Is there a OpenCascade function to determine such points or need I to iterate over the whole surface to get the point with the lowest x-value? Thanks! Author
I have a create a sphere solid or any TopoDS_Shape , how to scale it up or down using a factor ? Any function available similar to 'Scale' available for 'Geom_surface' class thanks in advance
Hi. I'm trying to build OpenCASCADE 6.1.0 on my Fedora Core 5.0 system. I have gcc-4.1.1-1.fc5. The configuration utility (ros/configure) ran fine, but when I try to make I get the following error: ../../../drv/Dico/Dico_DictionaryOfInteger_0.cxx: In function 'Handle_Standard_Type& Dico_DictionaryOf
Hello,every one, If I have imported a shape with the iges file, and already displayed in the viewer, how could i retrieve the dimensions of the shape? Such as the width,length, height of a box, the radius of a circle? Must I get the vertices of the shape and compute it along? Thank you for any sugge
Hello all, I'm a mechanical engineer who is a hard VB6 programmer who is becoming seduced by the sultry sirens of Linux (Ubuntu Gutsy to be precise). I have a very strong interest in machine tools and I wish to do some CNC "fun" projects ultimately using OpenCascade for the graphics and EMC2 for the
Hello, I'm experimenting with the boolean operations, and I came across a weird bug - when i fuse a box created with BRepPrimAPI_MakePrism and a solid created by BRepOffsetAPI_ThruSections the part of the solid which is inside the box gets cut, and the box remains the same. So i get a solid box and
Hi, I have a multithreaded application where I need to set the environment variable MMGT_REENTRANT=1 in order to protect the memory manager from multiple thread accesses. Is it possible to enable this at development/compile time (either with a variable in the compile environment or in code) so that
I am using c# wrappers generated by swig and am experiencing strange problems associated with garbage collector/memory management. The code randomly disposes variables (even global variables). I tried using GC.keepAlive() function, from C# but have not found it much helpful. Any kind of hint/help wo
I am trying to copy a TopoDS_Edge, here's the code I am using: TopoDS_Edge *theEdge = occ_curve->get_TopoDS_Edge(); TopoDS_Shape newShape = theEdge->EmptyCopied(); TopoDS_Edge newEdge = TopoDS::Edge(newShape); TopExp_Explorer Ex; for (Ex.Init(newEdge, TopAbs_VERTEX); Ex.More(); Ex.Next()) populate_t
I need to associate some extra datas to the faces. Using the DatMapOfShape stuff is not sufficient. I don't want to look up a table all the time for all the faces (vertices, etc.). The memory requirement seemed to increase a lot by those maps. So i've created an ABrep_TFace. It has a constructor tha
Hi, I've just installed v.6.2. Try ./configure in tutorial but it can't find OpenGL. So I think I need to download MesaGL and install it. Can someone tell me which release of MesaGL is most likely to work with OpenCascade? Thanks in advance, regards Author
I have a trimmed surface that I have read from an IGES file. I need to extract the boundaries of this face. I tried with the TopExp_Explorer looking for TopAbs_EDGE. It actually works but it gives a large amount of very short edges instead of 4 edges that I can see importing the original IGES file i
Hi all, What are the limiting angles in making the sphere? It can be understood that the first two angles correspond to the U and V parameters of the sphere. But what is the third angle in the point-radius-angle-angle-angle constructor variant? The doc does not explain fully. Regards N. Author
I've noticed a lot of people having trouble installing OpenCascade on modern systems. I'm attempting to install Open Cascade 6.2 on a Fedora 2/3 system with the latest Java. No Dice. I get: "The wizard cannot continue because of the following error: could not load wizard specified in /wizard.inf (10
Hello All, I tried to ran the javaSample application which is in opencascade bundled . I'm getting following errors Xlib: extension "GLX" missing on display ":0.0". Xlib: extension "GLX" missing on display ":0.0". How to fix above problem ? Thank u regards abn
Hi All, There is a long curve in model and I project it onto a Face and hope it can trim the Face into several sub Faces. I find an member function void Add (const TopoDS_Edge &E, const TopoDS_Face &F) in class BRepFeat_SplitShape. But I am confused about the second parameter. Why we need this param
Hi All, I'm importing data from and odd fille format. Surfaces are defined by sequences of points defining the polygons for the boundaries of the surface and other polygons defining the holes. (Just like happens for the opengl tessellator... see "Winding Numbers and Winding Rules" paragraph in http:
Hi, I want to determine norm of a 3x3 matrix (L2 norm by default). I could not find any explicit function in OCC which can do this. I will be very thankful if someone can suggest a way of doing in OCC. Thanks
Hello, in my project I'm tesselelating a TopoDS_Shape. Then I use a meanshift-algorithm to divide the triangle-mesh in different segments. Now, I'd like to color the surface of each segment in a different color. I know, how to color each edge of a triangle, but how can I color the surface? Here is t
Hello, I have created three TopoDS_Shapes with BRepOffsetAPI_ThruSections. I used gp_Pnts to create geom_beziers for the profiles, and the I've entered the same values for the points I wanted to be shared between these surfaces, but not the same actual points. these three surfaces are connected to f
Hi all, How have people found the performance and limitations of GeomAPI_PointsToBSplineSurface() for creating complex surfaces in terms of number of points that can used and accuracy? Does anyone have any experience in comparing this to the SSP product or other methods? http://www.opencascade.org/s
Hello OpenCascade Coders, I have seen that some of you have already gotten OCC to run on OSX. Would it be possible to share the binary and/or some words of advice how to get it to run with me. I would be very appreciative about it. I think I only need the core and non of the visualization stuff. If
Hi, I'm trying to save an OCAF document I have generated. Here an memory access exception raises. The OCAF doc is OK - I've printed it out directly before saving it. The save-command looks like this: storeStatus = application->SaveAs(document, "C:/testfile.geometry"); Now the following functions are