Hi! I am using BRepAlgoAPI_Section to find the section of 2 shapes. Then I connect the edges to closed wires. What I want to do now is to color the surface of the section. I think I could use BRepBuilderAPI_MakeFace with a Geom_Surface and a wire. My problem is how to find the face on which the wire
Hi all, I am trying to use OCC6.2.0 on Linux fc8 x86_64 ./configure --with-tcl=/usr/lib64 --with-tk=/usr/lib64 CFLAGS="-m64 -D_OCC64" CXXFLAGS="-m64 -D_OCC64 -ffriend-injection -fpermissive" make and make install seems ok. testing DRAWEXE I have the following results : - DataExchangeDemo.tcl is ok -
hello everybody: I have an application dévellopé in MS2005, as using the librairie of open cascades. to \" explore the entities topological, geometric cotopoligique,et Geometric of a model BREP \" , I want to compile this application with BorlandC++ builder6.0, to make this i use the DLL method for
Hi all, I've just reinstall OpenCascade 6.2.0 on my KUbuntu 8.04 laptop, and try recompile some of my projects. I've also switched to Qt 4.3.4 (and so for qmake), and g++ 4.2.3. I get linking erros when rebuilding my shared libraries that rely on OpenCascade, for example : "undefined reference to `V
Hi, I have got a problem that I think it will be very easy to solve for you. I have got a hierarchical structure like grandfather, father and son (All of them as TopoDS_Shape). To get that, I have created a compoundSon (with son), compoundFather (with father and compoundSon) and compoundGrandFather
Hi, Does anyone know how to calculate vertex normal after triangulation? I have fond that the class BRepMesh_Discret has a function "Normal", does it works? Any help will be appreciated!! Thanks in advance !! Yilin
Hi guys, need your help. I try to create a partial cone surface. And I use the following codes. I always got error . The shape looks: a perfect cone surface trimmed by three curves, so I can get a shape similiar to a triangular shape. Any help will be appreciated. thanks a lot. eric BRepBuilderAPI_M
We wish to generate the skin surface from a sheet metal part with thickness, the thickness is known and can be input as a parameter, how can I get the skin surface in opencascade? We try to do that as follow: erase the surface in the thickness then the part become to two layer (upper and down), then
Hello, I got two curves which share an end-point (held by Handle(Geom_Curve)). I wish to join the last part of the first curve with the first part of the second curve - How do i do that?
I am trying to compile the Tutorial mfc that is present in the Open casacade sourcecode and i'm getting the following error: .....\qframe.h(47) : error C2470: 'QFrame' : looks like a function definition, but there is no parameter list; skipping apparent body the linecode that generates the error is
Hi ! (I use VC++ and MFC) I have a number of different "cameras" in my application and when I switch from one to another I use SetEye() SetAt() and SetUp() to modifiy the view. The problem is that the view flashes a lot when I do this, it looks like these commands update the view on their own before
Hi, is it possible to define two surfaces and connect them to build a solid? E.g. can I define two circles that have no point in common and then build a cone-like solid by connecting the circles? If yes, could you outline a strategy to do this? Thanks a lot in advance.
Hi, I read a IGES file by XDE, and I add all top-level shapes in a compound , then I use BRepBuilderAPI_Sewing to sew this compound. Now I want to retrieve all top-level shapes again from this sewed compound. Does anyone kowns how to do this? Is it possible to retrieve the shapes from a compound? Th
Hi there! I'm trying to 'collect' a list of shapes. for this i use: ______________________________________________ void CGruppen::AddPartsToIGES(TopoDS_ListOfShape& shapelisthelpers, TopoDS_ListOfShape& shapelist) { TopoDS_ListIteratorOfListOfShape iter(shapelist); //////////////////// here the erro
Hi all, I'm loading an iges file with IGESControl_Reader, meshing each face in the shape with StlTransfer::BuildIncrementalMesh and triangulating with BRep_Tool::Triangulation; visualization is done in my own app. It seems to work quite good, but with a problem; vertex of triangles do not match alon
Hi guys, below is the piece of codes I use to export a face for testing purpose. I have inserted into the sample: topologybuilding to export PinkFace in that sample. However it doesn't work. I tried to trace it, but the codes is too much convoluted, I have no idea why it is wrong. Could anyone pleas
Sir, when I run my program this error show.. I am using opencascade and vc++. Iskind@Standard_Transient@@QBEIABVHandle_Standard_Type@@@Z could located in the dyanamioc link library TKernel.dll
Hi to all, I am working on a project and i would like to know that is their any method in open cascade through which we can define control points. Like the one which we use surface designing. Let me know if anyone can help me. n thanks in advance
Hi, all I'am trying to read STEP file using XDE. First, I get all top-level shapes, and one of them is a reference of another assembly. so , I iterate all components of this referred assembly. My problem is that the locations of these components are incorrect. I've tried to affect all components wit
Hello, I believe I have found a bug in OpenCascade 6.2. I am able to load a large STEP model into memory without errors, but when I try to write it back out to disk, the following happens: This is my code: STEPControl_Writer writer; writer.Model( Standard_True ); ... TopoDS_Shape shape = cascadeShap
In the moment i include ALL .lib files that are in the lib-directory. I wish to have it more structured and comfortably so i can find an single statement. (its very hard when i have about 100 libs included!!) now my question is how can i quickly find out which .lib files are neccesary to build my pr
One behaviour which was not happening with Cascade 2.0 and now appears with 3.0 : Objects are clipped in 3d Viewer. I've tried to play with myV3d_View->SetZClippingType(V3d_SLICE); OR myV3d_View->SetZClippingType(V3d_OFF); no change at all. What was the change with viewers ?
I have created an application, but there is a slight problem with the viewer i.e. the objects displayed such as a line is partly truncated/cut-off. Why am i having this problem and how can i rectify this problem? my source...no clipping V3d_TypeOfZclipping oType = V3d_OFF; _V3dView->SetZClippingType
Hi community! refering to site 30 of the XDE guide: Can someone give me someone a simple example how i can make 4 Shapes to 2 assembly's?? Because i can work it out with the 40 sites of the guide and i read it now for 2days... thanks in advance Author
Hi, I am trying to build a compsolid from 2 solids of 6 faces that share a face. The result should be a TopoDS_CompSolid consisting of 2 solids and 11 faces. I create each solid by sewing the faces together. How do I do to combine the solids in such a way that a compsolid is created?
Hello, I built some geometrical objects and I would like to put each one into a particular layer in an iges file in order to display object associated to a given layer. How can I do that ? Thank in advance for your help Bruno
Begineer:I have completed Meshing and want to calulate the distance between nodes ,and draw line between origin and node(Id) of mesh triangle. please help me
sir, Can we add/remove mesh (nodes,edge,triangle). I want to move my nodes when I select it. how can i find length of edges in meshing. please help me ... thanks ..
hi @ all does the standard iges export (taken from samples): ========================== CImportExport::SaveIGES(myAISContext); =========================== support the AIS colors?? thanks and best regards Author
Hello, I have tried the C# sample. But when I call a method from the shell class I got an error like this: "The File or assembly , or one of its dependencies, was not found. Does anybody have an idea how I could fix that? I use VS 2005 Professional. Thank you and best regards Arno
Hi, I am starting with opencascade right now. I have tested some functionallity to test engine and calculations and it goes very well. My problem raises when I try to create my own window definition in my application. I have tested in a dialog based app, and works fine with this instruction Handle(W
Hello all, I try to sew faces together to obtain a closed shell. I am very suprised to see that there ara no free boundaries, but the shell is not closed ! My code looks like this: BRepOffsetAPI_Sewing aSewingMeth(Precision); // API to sew faces for (ii=1; iiLength(); ii++) aSewingMeth.Add(HGoodFace
Hi, how can I keep the color of an AIS_InteractiveObject during IGES export. My code : Handle(TopTools_HSequenceOfShape) seqShape; . . Handle(AIS_InteractiveObject) obj = .... if( obj->IsKind(STANDARD_TYPE(AIS_Shape)) ) { TopoDS_Shape shape = Handle(AIS_Shape)::DownCast(obj)->Shape(); if( seqShape.I
Hi! I want to find a mapping from the faces of two shapes S1, S2 to the faces of the shape S that has been created by a boolean operation of the shapes S1 and S2. Several threads in this forum state that one can use the three methods IsDeleted, Modified and Generated of the class BrepBuilderAPI_Make
After compiling occ on linux in debug mode, the application takes a very long time to start and debugging is very slow. Right now I am using a 1.6 GHz intel core duo with 1 gig of ram. Does the debug performance increase a lot with more ram? Author
How does the visualization work with OCAF? here are the steps i followed, but it doesnt work: 1. create new V3d_Viewer 2. create new V3d_View 3. create new AIS_InteractiveContext 4. create new Document 4. imported iges with IGESCAFControl_Reader I found some hints about TPrsStd_AISViewer and TPrsStd
when i try the code to determinate the type of surface i use BRepAdaptor_Surface. my code: //Retourner la surface geometrique de la face current(acurrentFace) TopLoc_Location location; Handle(Geom_Surface) aGeometricSurface=BRep_Tool::Surface(acurrentFace,location); BRepAdaptor_Surface asurface(acur
HI; How to use adaptor3d_surface to get type and equation of surface. i would like to know the type(plan,cylinder,sphère,bspline, bezier...) and the equation of surface (geometric surface of the face expolred from shape). i used the adaptor3d_Surface but i not understand the thèorie of this method.
i have a file consist of XYZ point list example.. 38 132.1212 121.2323 11.121 234.2323 434.2323 11.121 .. .. .. 300 132.1212 121.2323 11.121 234.2323 434.2323 11.121 .. .. total count is 467343. this file appear contour. i will draw a polyline using OCC. so i make compound base on edge like this! --
I create complex structure, consist of primitives: MakeCone.Shape, MakeCylinder.Shape etc, I just create this shapes and then change shape location, and Display it. (I think it could be better to use Solids and Compound Solid for this task, isn't it? But can't understand, how create solid from primi
how i can display the paramter of vertex for exemple in The window of console application: for exemple i like to display the coordoniate of gp_Pnt: gp_Pnt ageometricPoint=BRepTool::Pnt(acurrentVertex) think you...........
i woued like to get all the geometric information of the(face,wire, edge, and vertex)from a TopoDS. for exemple : for vertex vertex i like to determinate the coordonniate gp_Pnt(X,Y,Z) sorry for my english think you ............
Hi there. I am having problems relocating a Trihedron. The call to SetLocation works as expected. BUT after the call I have TWO Trihedrons displayed. The Original one and the relocated one..... What am I doing wrong? I just want to have the relocated one displayed.
i would like to convert a step file to cascade shape and to determinate all the face in the shape ,and all the wire in the face, and all the edges in the wire also all the vertices in the edges. for this i readed my step file from STepcontrol_reader, and i like to explore all the face from a shape.(
hello everyone why the following flies only have Constructor function,and no other functions,how can i use this class? StepDimTol_ParallelismTolerance.hxx StepDimTol_RoundnessTolerance.hxx StepDimTol_PositionTolerance.hxx StepDimTol_LineProfileTolerance.hxx StepDimTol_CylindricityTolerance.hxx ... t
Hi, I'm importing an IGES file using "IGESControl_Reader". I'm tesselelating each face of the TopoDS_Shape. The next step I want to realize is to calculate (and display) a 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
Hello, I am trying to compile a OCC6.2 project in Open Suse 10.3 Linux. When i link the code give some linking error and i didn't know how to solve. Please help me out. Here the linking errors: /home/alecz/Projects/OCC_proba/src/sat_interface.cxx:313: undefined reference to `TColStd_Array1OfReal::TC
Hi all! I just made a few geometries without any Viewer o(nly MODELING DATA and IGES_CONTROLWRITER were used) like: ================================= tempPnt.SetCoord( pnt1.x, pnt1.y, pnt1.z); tempPnt2.SetCoord( v1.x, v1.y, v1.z); Handle(Geom_TrimmedCurve) curve = GC_MakeSegment(tempPnt , tempPnt2);
Hi all, using XCAFDoc_ShapeTool I'm able to add only top level shapes using AddShape, but with child I've not found any way to use XCAFDoc_ShapeTool. Someone can explain me the difference and the use cases for - AddComponent - AddSubShape Thanks
Hello there! First my qeustion may be little bit too general so please help me to find the real question. baciclly i do: ============================== GC_MakeSegment(tempPnt , tempPnt2); aSequence->Append(BRepBuilderAPI_MakeEdge(curve)); ============================== aSequence is kind of Handle_To
HI! I like to use graphic driver function in my mfc application, it doesn't give any error, but when i execute it crash! When i debug the code it shows NULL in this portion; myGraphicDriver = Handle(Graphic3d_GraphicDriver)::DownCast(((COCsdiApp*)AfxGetApp())->GetGraphicDevice()->GraphicDriver() );
Dear everyone I can create a occfram window by ocaf Appwizard in MS vc++ 6.0.I want the window to work as that when I click a button ,a line or circle will be painted.So I used the code of the sample"AISBasic".Here is the code: gp_Lin L(gp_Pnt(0.,0.,0.),gp_Dir(1.,0.,0.)); Handle(Geom_Line) aLine = n
Hello, I would like to know if the OpenCascade provides assembly functionality or not. I was able to model parts. And I want to assemble the parts. I appreciate your kind assistance. Best regards, Tae-wan Kim