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

Showing 60 discussions, ordered by the latest archived activity.

MFC CDC::DrawText() problem

Hi, I have a GUI library that contains CDC::DrawText calls many times and, when I try to compile my application I have this message error: error C2039: 'DrawText' : is not a member of 'CDC' I read in an old message that I could avoid this error using DrawTextW instead of the CDC::DrawText but unfort

2 replies

Underlying Curve from an Edge

I have been fiddling around with using TopExp_Explorer to examine a shape built with BRepPrimeAPI_MakeBox. I am able to extract the edges of the shape but I'm wondering if I can then extract the underlying curve used to define the edges. Is there a way to do that? Cathy

1 reply

CAS4.0 online documentation

Is anyone else having trouble with the CAS4.0 online documentation at the link, http://www.opencascade.org/doc40/index.htm I am having trouble using it. I load it up and hit the SEARCH tag in the left hand column. Then I search for "Projector". I get some results and I poke on the link to HLRAlgo_Pr

2 replies

Visual Basic

I'm new with OpenCascade, and not very familiar with C. I'm working on a metrology software in Visual Basic, and would like to use OpenCascade as a visualization tool to display geometry. My question is has anybody used Visual Basic with OpenCascade, and if so how. Thank you, Darren Clark

1 reply

Open Cascade downloadign problem

Hello all; I am trying to download OpenCascade, but the URL sent to me via e-mail from the webmaster does not seem to work. Did any one encounter that problem? I will greatly appreciate any help in that regard. Thanks; Diaa ElKott McMaster University Hamilton, Ontario, Canada

1 reply

Crappy forum ?

Hi ! I just did a quick check to see if things has changed since I last used OCC (about 6 month ago), and it's still the same. Take a look at the last 420 messages in the forum, about 250 never got an answer at all, that's about 60% that never gets an answer, isn't the forum about helping people wit

5 replies

RTTI !!!

Hi ! For the last two years or so I have been complaining about the fact that you must have RTTI enabled to compile OCC on Windows, but still this is NOT enabled in the .dsp files you get from the CVS, I have requested that some one add this for two years now and so far I havn't even gotten a respon

1 reply

BUGGY ShiftSelect !

The deselection of a current object with AIS_InteractiveContext::ShiftSelect() does not work at neutral point. It worked in previous versions of OCC and still works with opened local context, but not at neutral point. Regards, Author

1 reply

emacs cdl macros

Hi, I'm seeking the lisp macros for emacs, which were delivered with the old versions of CAS.CADE on Unix. Has somebody these lisp files ? TIA, Author http://www.exotk.org

1 reply

Boolean Operations

Hi, I've got same results with "cut". A workaround is healing the shape with ShapeFix_Shape. Best regards, Author Müller

2 replies

How to use AIS2D in OCC4.0?

Hello everybody: I have just known that there is a new package AIS2D to implement the presentation and selection in 2D, replacing the old ISession2D_InteractiveContext & ISession2D_InteractiveObject. But from manual & CDL file I couldn't find the information how to construct a AIS2D_InteractiveObjec

2 replies

Shapes and local coordinate system

I want to build, for example, a circle on a face of a box. Is it possible to build the center of this circle relative to a/the local coordinate system of the box? Should I define a local coordinate system (gp_Ax3?) ? Should I (and how should) use TopLoc_Location, TopLoc_Datum3D, ... ? Best regards D

1 reply

STEP TransferRoots() Failure

I am having difficulty reading STEP files in OCC 4.0. The annoying part about it is that the files I am trying to read were written with OpenCascade 4.0. Here is the message I keep getting during a call to TransferRoots(): ----------------------------------------------------------- Program received

1 reply

Java3D

Hi everybody, As far as I remenber I saw in this list someone who was willing to port the viewer part of OpenCascade under Java3D. I would be quite interested in a web enabled OpenCascade. Is there really someone working on this ? and which is the status ? An other interesying topic would be a VR or

1 reply

How to use FSD_File??

Hi, I'm trying to write some data to a FSD_File, using the following code: ... FSD_File myFile; Handle(ShapeSchema) schema=new ShapeSchema; Handle(Storage_Data) data=new Storage_Data; data->ClearErrorStatus(); if (myFile.Open("D:/temp/test.csf", Storage_VSWrite)!=Storage_VSOk) return 0; Standard_Rea

1 reply

BRepTools_WireExplorer

Hi, In the Modeling Data User's Guide v 4.0, section 4.4.2 it talks about the Wire Explorer. However when I try to go look at the online documentation and search for BRepTools_WireExplorer, I can't find any documentation for it. Is there any further documentation for this class beyond the User's Gui

1 reply

AIS_Trihedron bug ??

I used AIS_Trihedron with OC3.1/Linux. I try to rebuild my apps under OC4.0/NT4/VC++6 without MFC (using FLTK) and each time there is : Handle(AIS_Trihedron) aTrihedron; Handle(Geom_Axis2Placement) anAxis=new Geom_Axis2Placement(gp::XOY()); aTrihedron=new AIS_Trihedron(anAxis); it crash at the last

2 replies

BUG in OpenLocalContext()

Start "Samples\MFC\AISSelect" from the start menu (or "Samples\MFC\06_SampleAISSelect\Release\SampleAISSelect.exe" in the OpenCASCADE installation folder). Directly after program start do the following about 89 or 111 or 188 or 67 times: click on the button "Faces" (which opens a local context for f

1 reply

Boolean operation : missing faces

Hi I use OpenCacsade (4.0 build 10/2001). When I use fuse operation I have some missing faces. Is this bug have been aleady fixed in new version ? Or How to avoid this problem ? I use ShapeFixe_Shape to try to recover the solid , but it returns the same solid with missing shape.

3 replies

Hidden Line Removal Algorithm

HI, Bug in 12_SampleHLR I can use HLRBRep_PolyAlgo, But when I use the HLRBRep_Algo, some edges are not correct.It seems that the prjections of some lines are not right. I can send you of screencopy by email. Could someone tell me why and how to deal with it? Thanks David

2 replies

"new" : no overloded function takes 3

salut j'ai un probléme a utiliser la fonction "New" pour déclarer les handles je recois toujours un message d'ereur disant que : "new" : no overloded function takes 3 parameters merci d'avance.

1 reply

Display priority

I want to display a point in a box. But the shaded box hides the point. Is there any way to enable this?

3 replies

Problem with BRepAlgoAPI_Section

Hi, I am having problems extracting the PCurves from a BRepAlgoAPI_Section. I have intersected two shapes (each has a b-spline surface as its underlying geometry) and when I explore the result, I can extract Edges for all the intersections and display them. I can also extract the PCurves on my first

1 reply

SAT import/export

Hi, I need to import some SAT files into Cascade and I would like to know if some of you have already tested the ACIS module recently launched. - Does it require an external ACIS license? - How good is it? Thanks for your feedback, Raoul.

1 reply

gp_Trsf - HowTo?

Hello, at the moment I'm reimplementing "unmatrix" from "Grahics Gems II" as a OCC function: int MatrixDecompose(Standard_Real MatrixComponents[16], gp_Vec& Rotation, gp_Vec& Scaling, gp_Vec& Translation, gp_Vec& Shearing, math_Vector& Perspective); Now my Question is: How can I build the rotation a

1 reply

Using OpenCascade with GTK ?

Hello, My laboratory is evaluating various solutions for implementing our project... OpenCascade should surely be choose... but the choice for a linux widget library is stil open. For moment we have evaluated QT succesfully. But we'd like to evaluate GTK too and especially GTK-- which is the C++ wra

1 reply

OCAF In 4.0

Hi: My program is good on OpenCascade 3.0. Unfortunately, I upgrade to 4.0. I got a lots errors. I fix all. It's no error in current. But, the execution get failed. I try using debug step by step. I found it is dead in myApp = new TStars_Application() that is same as myApp = new TSampleOcaf_Applicat

5 replies

Crash on Poly_Triangulation

This has already been submitted as a bug report. When executing the OpenCascade code below, I always get a crash at the specific position when Poly_Triangulation returns the number of polygons. The Boolean Cut operation is used on a cone and a cylinder. The apex of the cone lies on the surface of th

2 replies

Poly_Polygon3D.ixx

When stepping through the debug libraries I get a message to locate Poly_Polygon3D.ixx yet my Opencascade 4.0 source doesn't contain that file. Does that mean the dlls and the code don't tie up or did someone forget to include the source file in the distribution? Jon G

3 replies

Projection of point on line

Can anyone point me at a way of finding the location of a point projected onto a line? something like gp_Pnt gp_Lin::Projection(gp_Pnt) ? Thanks

2 replies

The importance of dashed lines

I must persuade a journalist about the importance for a graphic card to accellerate dashed lines (stippled)too He ask me if in the CAD world are dashed lines real used. I have needed of your opinion. Thank you all

0 replies

Where to Start Development using OpenCascade

I am in the process of getting into serious development of a CAD module using OPENCASCADE. I have experience of working with Pro/Toolkit (earlier known as Pro/Develop). I am basically looking for: 1) VC++ Environment needed for the development 2) Steps to be followed for building my own application

1 reply

PTC STEP files

Hello, when I create STEP files with Pro/E or ProDesktop Express these applications create STEP assemblies with references to external STEP files. When I try to import them in my OCC app, the application always crashes. What can I do? Regards, Author Müller

1 reply

i would like to post your my program in site

Dear Sir! I have make the assembly program using open cascade 3.1. The feature is step load,axis align,face align,hide object,show object,grouping object,part transition,and etc.. so.. i post my prgram in your site( www.openscasade.com ). is it possible.? my e-mail address : [email removed] thanks..

2 replies

Crash on Poly_Triangulation

The sample code below crashes on the given line when NbNodes() of Poly_Triangulation is called. No matter which of the 3 given Boolean operations you use, it crashes in all cases. I can provide more examples if needed. Please give me feedback on the problem and possible solutions. Thank you very muc

1 reply

get personnel class

I already developpe a class named cyl. This class will draw a cylindre with his axe.I can so create so many instance of this class with differents arguments. How can i get this arguments of each instance from selection by mouse in an interactive context

1 reply

Faster Display

I am reading a stl file and converting the triangles into TopoDS shape as mentioned in the code below. But displaying the triangles(after being converted to shape)takes a lot of time.(see Display function below). Is there anyway to display it faster? Thanx in advance sonu khans In some message handl

10 replies

Error in loading librairies

Hello all, All program (including the MFC samples) compile fine without any errors or warnings. But when it begins to link, I get the error message: ...\windows_nt\lib\Tkernel.lib: fatal error LNK 1106: invalid file or disk full: cannot seek to location 0x3bb4l326. I am using VisualC++97 under Win98

1 reply

Offset error

When I do offset to a object import from iges, but I receieve a error message: "Incorrect set of faces to remove,the remaining shell is not connected." ,what can I do for it? Somebody help me, thanks.

1 reply

Creating Triangulations.

Hi, Is it possible to create a new triangulation from an array of points ? If so, code extracts would be appreciated ? Thanks ...

1 reply

tranverse through a polygon

hello, if i have a polygon, is there any algo. in opencascade to let me tranverse this polygon from a start point to the end point, and find whether a given point is inside this polygon or outside? thanks in advance.

3 replies

control boolean operation

Hello, at the moment we are using for geometry modeling our own BSP (Binary Space partition) Kernel that work very well. In boolean operation we have complete control about the result surfaces (and edges). E.g. if we unite two boxes, which are on the same plane and got an equal height we can decide

2 replies

XDE

I have just started to work with XDE as I need to construct STEP files with external references but my first test program is giving me problems. The following line throws an exception: STEPCAFControl_Writer writer; It is a Standard_DomainError with the message XSControl_Controller : Record The examp

1 reply

Where are the messages?

Hi, does anyone know if there is still a way to access all the messages which were in this forum? It seems that they vanished somehow when the forum was rebuilt. I would appreciate any help since this pool of questions was very interesting. Thx Robert

1 reply

Boolean operation problem

I have following code: gp_Pnt P1(1,0,0), P2(3,0,0),P3(1,0,0),P4(10,0,0); TopoDS_Edge E1 =BRepBuilderAPI_MakeEdge(P1,P2); TopoDS_Edge E2 =BRepBuilderAPI_MakeEdge(P3,P4); TopoDS_Shape S =BRepAlgoAPI_Common(E1,E2); Standard_Integer N =S.ShapeType(); #### Code End ##### and I assume the value for S.Shap

1 reply

How can I use WxWindows GUI?

I'd like to use the WxWindows GUI under linux. Does anybody know how to use the Xw_Window opencascade class in the WxWindows framework? Qt and FLTK samples where not enough to give me a clue. Thanks, Paulo

1 reply

Problems with IGES surface import in 4.0

Hi folks, I try to import IGES entities of different kinds. I am mostly interessted in surfaces. With version 4.0 I find that the library fails to import the first surface. An error message is printed that one entity failed to load. Different IGES files with different surfaces produce the same resul

3 replies

Boolean operation on non-primitives

Is it possible to do boolean operation on non-primitives(my own created shapes other than box, cylinder, sphere etc.) using OpenCascade. Thanx in advance sonu khan

1 reply

Distance

my problem is as follows A given curve y =f(x) and a point p(x,y) i need to find out the shortest distance between the given point and the curve ! please help me out. Vedanth

1 reply

Viewer Wizard

Hi again, if I build an CASCADE application via the VC6 Viewer Wizard I can't use the VC form wizard. Is this an error? Regards, Patrik Müller

1 reply

Forum Posting Question

Hi, When I try and post some C++ code on this forum using the web posting form, it interprets the greater than and equal signs around my include statements as HTML and so I can't see what I am included when I preview the message. It also took my sample output from my code and turned all the single l

1 reply

First trial with XDE

Hello all, I try to read STEP and IGES files via the new XDE package. But since this are my first steps with OCAF I got some problems. Here's the code: CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, "STEP Files (*.stp , *.step)|*.stp; *.step; |All Files (*.*)|*.*||", NULL

1 reply

Tcl76

I would really like to be able to use tcl 8.3.x and not the old tcl 7.6.x. This is probably something that should have made it into the release of OpenCascade 4.0 since 7.6.x is old and most people are probably using the 8.3.x release of tcl.

3 replies

V4.0 Running error

Hi: I don't have any ideal to figure out what wrong with it. The complile for my program is OK. But, The execution is error. ?SaveAs@TDocStd_Application@@QAI?AW4CDF_StoreStus@@ABVHandle_TDocStd_Document@@ABVTCollection_ExtendedString@@@Z(...TKCAF.dll) What is it? Thanks a lot. ps1. I have tried the

1 reply

configure / libtool problems on IRIX

I sincerely applaud the effort to move Open CASCADE away from custom scripts and to an autoconf/automake setup. However, I've had a very tough time building the Open CASCADE 4.0 release on IRIX 6.5. I am using the vendor compilers (CC and cc) rather than gcc, since our application needs to link with

2 replies

vertex on edge

Hi everybody, I have a problem. I want to check whether a vertex lies on a edge, or not. But I didn't find a routine. Perhaps somebody can give me a hint. Thanks a lot.

1 reply

Bug!! Without TDataStd_Reference.hxxfile

Hi: I want to use TDataStd_Reference. But, it seems TDataStd_Reference.hxx that did not exist in version 3.0 and 4.0. Am I wrong? I only find two relative files in TDataStd folder in Version 4.0. thanks. Sincerely shawn

2 replies

Error in OCC V4.0 projects

In the ModelAlgorithm.DSW, the active configuration was set to TKBOOL.DLL, but it should be TKFEAT.DLL. If you use the default setting, it will only make 4 (instead of 8) DLLs. I'm sure I'll find more problems as I start remaking other modules. Just as I expected due to my experience with recompilin

1 reply