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

Showing 60 discussions, ordered by the latest archived activity.

About Snap ?

Hello, Everyone: presentation and select use ready-to-use algorithms. and How to use select Model to develop myself Snap Model? I think that Snap can't use ready-to-use algorithms. I hope someone can give me some advices. Thanks!

1 reply

Error : Could not move to entity : wokcd

Hi, I try to run WOK on my Mac. I don't get errors from the system but during launch I get Error : Could not move to entity : wokcd Could a WOK/TCL guru give me a hint where I probably missed a variable? Author

1 reply

Determine a surface is inside another surface?

Hi Everybody! i'm using OCC 5.2 and my problem is how to determine a surface is inside another surface? i tried Brep_Feat::IsInside() function but it only worked with two planar surfaces. Could someone help me to solve this problem?

3 replies

Fatal Error in units initialisation

hi to all.. well i have compiled blank viewer application with just import export facility.. so that it can work as viewer.. the exe generated works fine on my PC but when i take that exe on another PC along with all the dlls and execute it .. it gives "Fatal Error in units initialisation".. what ma

2 replies

display points cloud

Hi !! Anybody can helped me to display poinints cloud in open cascade and make a topological primitive with. thanks

1 reply

Help for mfcsample.lib.

I have just download the open cascade and met a trouble that i could not link the MFC sample project successfully because of the Error: "LINK : fatal error LNK1104: cannot open file "mfcsample.lib"" Can anyone help me?

2 replies

java based viewer

Hello Anybody written a Java/Swing based GUI for the Viewer/View API's of Visualization. I mean Java samples is available, but it has lots of packages,etc and anybody attempted to play around with this code and built a GUI with a viewer in it and ust display a OCC shape. Another example can be porti

1 reply

Embeded Viewer in Java Code

Hi Using a combination of Opencascade CC+ source code and a JNI interface in Java we developed a experimental application that incorporated Opencascade viewer. The program worked fine under the unix OS but when recompiled under windows we have been unable to get teh viewer to work without crashing.

1 reply

Java - SimpleFrame

I compiled files "SimpleFrame.java" and "SimpleViewer.java", but when I run, appear a blank screen and the messages: Info: Load NativePaint lib... Info: Loading NativePaint lib done java.lang.UnsatisfiedLinkError: paint at SimpleViewer.paint(Native Method) at sun.awt.RepaintArea.paint(Unknown Source

1 reply

GeomAPI_PointsToBSplineSurface trouble

Hi, All! I use GeomAPI_PointsToBSplineSurface to convert set of points to bspline surface, but I have some troubles. Eg: There is such set (6 * 5) - 0.000000, 0.000000, -50.000000 50.000000, 0.000000, -50.000000 50.000000, 0.000000, 0.000000 50.000000, 0.000000, 50.000000 0.000000, 0.000000, 50.0000

3 replies

OpenCascade documentation

Hello, due to the questions about OpenCascade documentation, Robert Bachrach has created a simple perl script that converts all the CDL files in a directory into cross-linked HTML files. It also creates a searchable index. The index and CDL contents can be viewed here: http://www.sonnensturm.net/Ope

1 reply

How to texture with lighting.

Hello, I'm trying display a texture-map object with lighting. But all texture-map object is not lighted. Some limit displaying texture-map in OCC(AIS)? Someone knowes how to turn-on light? Please tell me.

1 reply

interpolation curve on surface

Hi all, someone can give me a suggestion. Given a BSplineSurface and an ordered set of points on that surface, how can I obtain a Curve which interpolate all the points and lies on the surface? Thanks for any suggestion

3 replies

constant triangulation

Hello, i created a triangulation using BRepMesh::Mesh. Now the wireframe is optimized, i will say on planar surfaces only a few triangles are computed (only as many as necessary). Is it possible to get a constant spreading of triangles, maybe with a constant size or something else? Thanks in advance

1 reply

NEED HELP : Bug in BRepBuilderAPI_MakeFace?

Hi! I try to create a face giving a pre existing face and a closed wire, so that the new surface corresponds to the part of the old surface that is contained within the wire. The BRepBuilderAPI_MakeFace doen not seam to work because it does not succed in creating the new face. Can anybody give me a

2 replies

surfaces from scattered points

Hi, Anybody used ( purchased !!) the Surfaces from scattered points library ( Not open source ) from OCC. How is it .. performance and usability for reverse engineering. regards - Prasad

1 reply

an edge to a face

Hi All, There is an edge, how am I able to make a face with it? Thanks for your help

1 reply

convert polygon mesh to nurb surface

I would like to know Opencascade fuctionality. The Question is as follows. 1 i would like to know to exist Opencascade fuction to convert mesh to nurbs surface. if it is not exit, how do i can this ? Thanks in advance for your help, Regards.

3 replies

Create a surface from for curve

Hi, I'm beginner in OC. I've the point of four curve and I need to create a surface from these point. There is a simple example that make this? PS: Sorry for my English

1 reply

Calss browser

Hi evrybody, I couldn't find the class browser html file like the previous version. Dosn't the newest version have it or it changed completely? Best regards, A.Akbari

5 replies

To Convert BSpline Curve to analitical curve

hi i m trying to convert a BSpline Curve into any analitical curve which is represented as BSpline in STEP file.. i got a OCC class ShapeCustom, but dont know the implementation. can any one help me how to go about this class. or suggest some other way to convert BSpline Curve? thanx Author

4 replies

Can I cast the TopoDS_Shape to the Geom_***?

I can construct a sub shape of TopoDS_Shape like followings: Standard_Real x_length=5; Standard_Real y_length=5; gp_Pnt aPnt1(0, 0 , 0); gp_Pnt aPnt2(x_length , 0 , 0); gp_Pnt aPnt3(x_length, y_length , 0); gp_Pnt aPnt4(0, y_length , 0); Handle(Geom_TrimmedCurve) aSegment1 = GC_MakeSegment(aPnt1 , a

1 reply

STL import

Hey... could anybody help me???i have a Shape stored in a STL file and i would like to load it as fast as possible into a viewer.any idea? pliz help.

9 replies

problem with GeomFill_BSplineCurves

Hello, I have a problem with GeomFill_BSplineCurves. I generated four boundary curves with GeomAPI_PointsToBSpline and 100 points for each curve. The curves looks always ok, I drawed them on the screen. But GeomFill_BSplineCurves crashes sometimes somewhere in free.c. Does anybody knows this problem

1 reply

Problems with selection region drawing on Qt4

Hello! I need to draw a rectangle on the QGLWidget for selection by region on the OCC 3D Viewer. The problem is: when I drawing the rectangle using QPainter, I see the white backgrount of the parent Widget. In the Qt3 such problems was not appeared. At the OCC Qt3 samples they using the simple QWidg

14 replies

BRepBuilderAPI_MakeEdge() fails, who knows why?

Objectif: Just try to use : BRepBuilderAPI_MakeEdge(const Handle(Geom2d_Curve)& L,const Handle(Geom_Surface)& S,const Standard_Real p1,const Standard_Real p2) to make an edge on a surface. Result: FAILED! Program: face is a given TopoDS_Face. for (expw.Init(face,TopAbs_WIRE);expw.More(); expw.Next()

1 reply

Face with internal hole and bounded by a wire, what's wrong?

Hi, I hope someone can help me. I am trying to build a face bounded by a wire, the problem is I am not able to add additional wires as internal holes afterwards. Note that I get the data from another cad system then I have all the trimming curves (i.e. edges) in parameter space (UV). The UV curves I

3 replies

Algorithms for creating surfaces from scattered points

We are two students who are working on an opencascade project. We need algorithms in order to create a surface from scattered points. We would like to know if some algorithms exist already and if some of them are available. Thank for your help.

2 replies

about Geom_Curve

Hi everybody, Handle(Geom_Curve) curve = BRep_Tool::Curve(Edge,First,Last); if Edge is not null,but curve is null. what is the problem? Best Regards, Author

3 replies

How to add one BSpline surface to another BSpline surface?

I have defined two independent BSPline surfaces who share one edge. I want to get one BSpline surface that includes the two. Is there any operation that allows me to add one BSpline Surface to another? thanks

1 reply

Modify /Change surface of a face

Hi, I was playing around with faces/Edges/Vertices (I am a new user).And got stuck at a point : I created a face with four Edges.(a plane face was created) How can I modify the surface of this face so that I can fit in some BSpline surface into it. Thanks, Nitin.

1 reply

Progress with OCC and Java?

hi; I'm wondering if anyone has managed to get the whole OCC Java into a usable package structure, and more importantly if you are willing to share it? Back in July, I spent a number of weeks attempting to do just this but had to abandon my effort because I had exhausted both my time and my patience

0 replies

Fatal Error in units initialisation

hi to all.. well i have compiled blank viewer application with just import export facility.. so that it can work as viewer.. the exe generated works fine on my PC but when i take that exe on another PC along with all the dlls and execute it .. it gives "Fatal Error in units initialisation".. what ma

1 reply

Functionnalies on an imported shape

Hi, I already imported my shape using the import-export, sample. Now I want to add functionnalites on that shape. For instance explore the model and put different colors depending on a selected direction. I am sure somebody has done something similar. Thank for sharing.

4 replies

Trimmed surface

Hi, Would you help me to solve next problem: A trimmed NURBS surface, if I well know, is created in next way: - create Geom_BSplineSurface - create topological object over it TopoDS_Face - create topological outer wire object - add outer wire to TopoDS_Face object (Add() function). (Is it correct?)

1 reply

Boolean and makebottle tutorial

In the makebottle tutorial, if I change the codes of making a TopoDS_Compound with the bottle body and threading to a BRepAlgoAPI_Fuse, it does not work. It seems that both the body and the threading are solids. Has anyone made it work? How can I make it work? Thanks, Author

1 reply

Release memory after closing Ocaf document

Does someone know how to release the memory from an Ocaf document (TDocStd_Document) ? The document contains a.o. TPrsStd_AISViewer, TPrsStd_AISPresentation and TNaming_NamedShape attributes. Calling the Close method of TDocStd_Application does not seem to release any memory. Regards, Guido

3 replies

Getting the size of a shape

Hello, i'm new in OpenCascade and have a simple problem. How do i get the size of the shape? The Class itself has no member like "get_XXX" to a size-vector or something else. Thanks! Author

4 replies

Which side of a WIRE is the material ?

Hi, I'm working on a CAM System. In order to make a contouring, the user must select a profile. I can get the wire selected by the user but how can I know on which side(of this wire) the material is ? Thanks

8 replies

[step/Iges] Get the names and colors of the different shapes

Hi, I'm developping a step/iges viewer and I would like to get the informations about the different shapes including in the step/iges file : color, name of the different shapes. Is it possible to get these with OCC or not ? When I open a step file with Notepad, for example, I can read these labels :

2 replies

Open CASCADE 5.2 Bug with AIS_TexturedShape & Prs3d_Text::Draw ???

Hi everybody, I looked to the OpenCASCADE Demo ‘TexturesExt’ and just want to add some text with an other OpenCASCADE demo class ( ISession_Text). And something strange occurs. If text was displayed in AIS_InteractiveContext before differents AIS_TexturedShape, the resulting texture became black.. I

2 replies

Add member function in OpenCASCADE original class

Hi~ I use Visual C++ 6.0 I want to add data member and member function in the OpenCASCADE original class; Here is my code. class Geom_BSplineSurface : public Geom_BoundedSurface { public: // original code... // add data member SubBS[2] to store the surfaces // Split from "this" Handle(Geom_BSplineSu

1 reply

TopoDS_Shape not transient?

Hi, I'm new to OCC and I'm getting compiler errors in this line: Handle(TopoDS_Shape) aShape; It seems that TopoDS_Shape can't be used with a handle, probably because the class doesn't inherit from Standard_Transient. But in the paragraph 5.2.1 of the Foundation Classes Guide there is this piece of

1 reply

Rendering Directly into OpenGL

Has anyone tried to render some part of the OpenCASCADE geometry using OpenGL calls directly. i.e. how can OpenGL calls be mixed into OCC code? N. Author

1 reply

Sewing faces to make solids

Hi everyone, I'm trying to sew faces to make solid(s). It works fine when I sew, for example, the six faces of a cube, with BRepOffsetAPI_Sewing. And I make a solid from the closed shell it returns, by using BRepBuilderAPI_MakeSolid. Everything ok for one solid. But when I try to do the same for two

3 replies

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: paint

I am using eclipse3.x. All I do, I put all the samples java classes (SamplesStarter) in a package name 'cascade' instead of (default package) then try to run the samples but I get a message Like following: " Info: Create Viewer Info: Done creation of Viewer2d Info: Load NativePaint lib... Info: Load

4 replies

OpenCascade 6.1 as RPM. List of files?

Hello, I am trying to create an ebuild for Gentoo of OpenCascade 6.1. The compilation goes fine but now I need to know which files are supposed to be included to the resulting package (at the moment, I only have the libraries and the binaries). Can anyone give me the list of files included in a typi

4 replies

isocurve outside bspline surface face

Hi, I've some faces made by BSplineSurface. On this faces I draw the iso curves at fixed values of U and V. Usually my code works fine, but I found a faces in which iso curves fall outside the face edges. Someone can help me understand why ? I put on http://www.benuzzi.net/forum01/images.html some i

5 replies

ITK, ITCL and TIX what is their use within Opencascade?

Hello, What is the use of ITK, ITCL and TIX within OpenCascade. There is a clear reference to these 3 libraries in the ros/env.ksh file but I would like to know if they are essential or not to OpenCascade. I am in the process of writing an ebuild of OpenCascade for Gentoo and I need to determine wha

1 reply

line-surface intersection

Hello, I have to intersect a lot of faces by lines. I found that GeomAPI_IntCS sometimes doesn't find an intersection, although the line goes through the middle of the face. I have read this thread: http://www.opencascade.org/org/forum/thread_8220/ There is a class IntCurvesFace_ShapeIntersector men

2 replies

Orientation of faces,wires...

Hi everybody, I have a question concerning the orientation of faces, wires, edges. Someone can explain me the relation between the orientation of the wire of a face and the face itself. Any kind of information would be very helpful for me. I explain more my problem: In fact I have to rebuild a face

3 replies

How to Read a cdl files

Hi, Just want to know how to open those cdl extension files. I have tried it using the Concept Draw VI didn' t work. Thank you

2 replies

closed surface

hello all, I saw someone already brought up this question, but never get answered. How to build a closed surface from points to bspline surface. Here is the problem: Handle(Geom_BSplineSurface) surf = PointsToBSplineSurface(pnt); surf->SetUPeriodic; This seems right, and it changes the logical value

4 replies

BRepOffsetAPI_MakeThickSolid error!

hi everybody, When I try to use BRepOffsetAPI_MakeThickSolid to shell a box(5 faces removed, one face remained), program broken and a "standard construction error BRepAlgo_Image::Bind" error message raised. I wonder if this is a bugs in offset algorithm? actually, BRepOffsetAPI_MakeThickSolid always

2 replies

Right angled coordinate system

Dear forum members, i'would like to use first angle projection in my CAD programming. in that positive "Z" coord should be towards the user and positive "Y" coord to be upwards and, positive "X" coord to be your right hand side. So that front view will have (XY) and Top view will have (XZ) and so on

1 reply

OpenCascade Functionality

Hi guys, I am new to Open Cascade. I am used to do CATIA Modelling, for aeronautical CFD analisys and would like to know if Open Cascade can do: - Parametric modelling - Macro Recording - Macro Replay - Run on batch mode (play macros in batch?) - Wich formats it exports? I've looked for in the docum

3 replies