Questions tagged [opencascade]

Open CASCADE Technology is a software development platform. It includes C++ components for 3D surface and solid modeling, visualization, data exchange and rapid application development.

Open CASCADE Technology (OCCT) is an object-oriented C++ class library designed for rapid production of sophisticated domain-specific CAD/CAM/CAE applications.

A typical application developed using OCCT deals with two or three-dimensional (2D or 3D) geometric modeling in general-purpose or specialized Computer Aided Design (CAD) systems, manufacturing or analysis applications, simulation applications, or even illustration tools.

The library is designed to be modular and extensible, and its main building blocks are:

  • Foundation Classes
  • Modeling Data
  • Modeling Algorithms
  • Mesh
  • Visualization
  • Data Exchange
  • Shape Healing
  • Application Framework
  • Draw Test Harness

Downloading

The library is available as open-source and you can get the latest release here:

Useful links:

160 questions
0
votes
0 answers

How to shrink 3d box to 2d square in PythonOCC

I am new to pythonooc And am trying to transform 3d objects to 2d...as though they were projected onto the XY plane an deduced to lines. So a cylinder becomes a circle, box becomes square and cuboid becomes rectangle. How will i do this with…
flexxxit
  • 2,440
  • 5
  • 42
  • 69
0
votes
1 answer

PythonOcc: Thicken a curve with variable radius

I am new to pythonOcc, I want to thicken a Bezier Curve (or make a pipe) unevenly: for example, the resulting thickened curve at the start point of the curve should be thicker than at the endpoint of the curve. Could you let me know what is the…
0
votes
1 answer

Using this in a seperate class methods crashes the program

I am having a challenge calling methods from a direct parent Base class but I can call methods in the Base class 's parent with ease. To clarify what I mean here is the code: First the structure of the opencascade library classes: class…
Minathe
  • 630
  • 1
  • 5
  • 21
0
votes
1 answer

Finding/Calculating the bend "direction" of a Sheet metal CAD model

There is this property that I call the bend "direction" that I would like to assign to bend features of a CAD model based on the side in which the acute/obtuse angle of the bend is located. For example, in the diagrams below I use +/- for the…
Minathe
  • 630
  • 1
  • 5
  • 21
0
votes
1 answer

Classifying TopoDS_Edge objects in opencascade

I'm having challenges with some IGES/STEP models where my code is not able to classify faces bases on the underlying classification of edges i.e whether an edge is a Straight line(non-rational Bspline curve) or arc(rational Bspline curve). I have…
Minathe
  • 630
  • 1
  • 5
  • 21
0
votes
1 answer

C++11 : I patched a segfault, but I don't exactly know what fixed it

I changed this sourcecode: GeomAPI_ExtremaCurveCurve ecc( BRep_Tool::Curve(wd->Edge(i + 1), u11, u12), BRep_Tool::Curve(wd->Edge(j + 1), u21, u22) ); to this: static Handle(Geom_Curve) c0 =…
sander
  • 1
  • 2
0
votes
1 answer

OpenCascade: How to subdivide elongated triangles?

I am using OpenCascade to import STEP/IGES as meshes in my software. Works nicely. But I need small triangles, and the one I get are sometimes very large (in flat area), or very elongated (eg. when meshing a cylinder). The best would be to split…
JeanDo
  • 61
  • 1
  • 6
0
votes
1 answer

How to get the vertex that I clicked on OCC widget?

I use OCC with python to visualize .igs and .stl format. In .stl file I have a mesh on my model and I want to know what vertex on this mesh was clicked. At least to get some kind of id. I see that the model that I choose automatically highlights…
Ekaterina Levchenko
  • 351
  • 1
  • 2
  • 15
0
votes
0 answers

How to convert OpenCascade Pixmap into OpenCV Mat format?

I am working with the OpenCascade Sample Project and I need to extract an 2D Snapshot of the 3DViewer Scene and convert it into the Opencv Mat format. I tried the code below and if I use imshow to display the snapshot, i'll get a complete black…
fuhsy
  • 11
0
votes
1 answer

Lex compilation error of IOS example of opencascade library in Xcode

I'm trying to build an IOS example of OPENCascade library on MacOs. Xcode version were used: 10.2, 10, 3, 11.1. RIght now I'm getting the following types of errors: ../occt_lib/src/BRepFeat/BRepFeat_MakeCylindricalHole.lxx:60: bad character:…
Alex D
  • 23
  • 1
  • 7
0
votes
1 answer

How do I open and modify OpenCascade files?

I need to open and modify a file (cnc program) that is in the OpenCascade format. How do I do this? Any libraries available for Python? I tried treating it as an .xml file but this did not work.
0
votes
1 answer

Does OpenCascade keep reference to line number of Vertex in step file after being opened?

I am using FreeCAD to analyze a STEP file. I know that FreeCAD uses OpenCascade to open STEP files. Now I would like to know for a specific vertex what the line numbers in the step file are, so that I can pass this information to another program. Is…
ThaNoob
  • 520
  • 7
  • 23
0
votes
1 answer

Assigning a TopoDS_Face object to its child object compiles with no errors but I have 3 valgrind errors

I have a class called Test which inherits the TopoDS_Face class. Already got some tips from This question but... // Test.h class Test : public TopoDS_Face { public: void operator = (const TopoDS_Face& base_) { …
Minathe
  • 630
  • 1
  • 5
  • 21
0
votes
2 answers

QOpenGLWidget: retrieving window handle for 3rdparty library

I'm creating an application, which interacts with OpenGL via QOpenGL* classes. The graphics is shown through a QOpenGLWidget, which is placed in a UI-form. Now, there is a library for CAD purposes (Open CASCADE), an OpenGL interface of which…
master_clown
  • 190
  • 1
  • 10
0
votes
1 answer

Retriving IGES entity 126 properties from a TopoDS_Edge object of type GeomAbs_BSplineCurve

An IGES entity 126 has a property or flag 3 value of 0 = rational or 1 = polynomial. After converting the entity to TopoDS_Edge, how do you retrieve the flag value? Or, if possible how do you check whether a bspline curve gives us a straight line or…
Minathe
  • 630
  • 1
  • 5
  • 21