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 50 of 90

Showing 60 discussions, ordered by the latest archived activity.

Find face with wire in a TopoDS_Shape

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

3 replies

problem vinit with 0CC6.2.0 on fc8 x86_64

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 -

2 replies

TopExp_Explorer

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

11 replies

dll

it is possible to put classes of open cascades 6.2 and the definition of their functions members in a dll without problem. if yes how, one makes it.

3 replies

occ 6.2.0 : linking errors with g++ / ld

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

1 reply

Animation with hierarchical structure

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

3 replies

Calculate vertex normal

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

2 replies

Can't Create a trimmed cone surface.

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

2 replies

Generate a Skin surface from a solid part

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

3 replies

join two curves to one.

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?

1 reply

need help in compiling

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

2 replies

View updates...

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

2 replies

Build a solid from two surfaces

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.

1 reply

Retrieve toplevel shape from a compound

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

2 replies

list of shapes....

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

2 replies

Holes while importing from iges

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

11 replies

step file export

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

1 reply

Surface evaluation

I would like to get U, V parameter of a surface at the given point (x, y, z). How can I do it? Many thanks in advance!

2 replies

ERROR ON Running opencascade...

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

2 replies

control points

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

2 replies

compat-libstdc++ error

���ڳ�ʼ�� InstallShield Wizard... ����׼�� Java(tm) ����� ................................... ................................... ................................... ................................... ................................... ................................... ............................

1 reply

Location of reference shape

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

4 replies

Error writing STEP file

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

3 replies

.lib.....

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

1 reply

OpenGL Clipping in 3d Viewer

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 ?

1 reply

truncated view -> OpenCascade 5.0

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

1 reply

assembly in XDE

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

3 replies

TopoDS_CompSolid from 2 solids

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?

1 reply

Layers with IGES file

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

6 replies

How we can do Mesh modification

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 ..

2 replies

export colors?

hi @ all does the standard iges export (taken from samples): ========================== CImportExport::SaveIGES(myAISContext); =========================== support the AIS colors?? thanks and best regards Author

4 replies

can't download

Hi, I try to downlao the OpenCASCADE_win32.exe by cliquing the link but error time out occur. Is just a temporary problem ?

1 reply

C# Sample - File or assembly not found

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

5 replies

Beginner:mouse click to coordinate..

Hello! I'm beginner I'm trying to display the mouse click to coordinates in the drawing area ..i don't know how to do? Help me...

3 replies

Opencascade into a CWnd derived class

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

1 reply

Unclosed shell with no free boundaries.

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

1 reply

IGES export

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

2 replies

Meaning of IsDeleted, Modified and Generated

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

7 replies

More memory for debugging?

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

1 reply

OCAF and visualization

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

1 reply

mistakes in the type of surface

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

2 replies

HOW TO USE ADAPTOR3D_SURFACE TO GET TYPE OF SURFACE

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.

1 reply

polyline problem!!!

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! --

3 replies

Dynamically change and redraw shape...

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

1 reply

display the parameter of (vertex, edge, wire, face)

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...........

1 reply

Trihedron SetLocation

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.

1 reply

Problem with topExp_explorer

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.(

4 replies

Why so many header file have no other functions besides Constructor function

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

1 reply

normals for each triangle of a triangulation

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

1 reply

Standard class linking error?!

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

3 replies

Text for geom

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);

2 replies

OCAF - XCAFDoc_ShapeTool - shape, components and subshapes

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

3 replies

color and linetype for a edge

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

4 replies

How to get grapicdriver in View?

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() );

2 replies

question about the AppWizard

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

10 replies

How to assemble parts

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

7 replies