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
20
votes
2 answers

How do I use splines in pythonOCC?

I have a two-part question about how to use splines in pythonOCC. Firstly, I know that I can create a spline with array = [] array.append(gp_Pnt2d (0,0)) array.append(gp_Pnt2d (1,2)) array.append(gp_Pnt2d (2,3)) array.append(gp_Pnt2d…
Steenstrup
  • 644
  • 6
  • 15
13
votes
1 answer

Pythonocc/Opencascade | Create pipe along straight lines through points, profile wont change normal

My ultimate goal is as follows: I have a huge data set of points, representing how a part will be 3D printed layer by layer. I need to create a line through these points and extrude a circle along this line (so rebuild the part as it will be printed…
Sander Voss
  • 143
  • 1
  • 7
4
votes
0 answers

3D visualization of complex geometries in a GUI

I would like to develop a small cross-platform for (structured) mesh generation software (similar to Gmesh) and possibly 3D pre/post processing (like Salome). In order to make things easier I'd like to use already made libraries, to better focus…
ray
  • 301
  • 2
  • 10
4
votes
1 answer

OpenCascade generate a tree view of information inside a step file

In order to read all shapes within my step file, I have succeed to extract all shapes using STEPControl_reader. Now I want to find a way (OCAF/XDE ?) to extract a tree view containing which shape is contained by another one. Could anyone give some…
Valimo Ral
  • 381
  • 2
  • 15
4
votes
1 answer

What is a linear / angular deflection in OpenCASCADE's Incremental Mesh?

Lately I've been using OpenCASCADE (PythonOCC, to be precise) for some CAD operations, including meshing shapes, and stumbled upon this class: BRepMesh_IncrementalMesh. I didn't find any hints on what the theLinDeflection and theAngDeflection…
Jytug
  • 1,072
  • 2
  • 11
  • 29
4
votes
1 answer

How I could get the actual toposhape data in OpenCascade?

All have file from CAD (SW) in STEP format and was able to read it via Python OCC binding: importer = aocxchange.step.StepImporter(fname) shapes = importer.shapes shape = shapes[0] # promote up if (shape.ShapeType() ==…
Severin Pappadeux
  • 18,636
  • 3
  • 38
  • 64
4
votes
0 answers

How to import STEP files with OpenCascade and display with coin3d with correct colors?

i am trying to import STEP files with OpenCascade and display them on Screen with the Open Inventor compatible coin3d library. Unfortunately i always end up with either the colors working, or the geometry being correct, having correctly positioned…
Hellagot
  • 235
  • 2
  • 13
4
votes
0 answers

Reason: image not found Trace/BPT trap: 5

I have a problem while running executable on mac OS X(Yosemite 10.10.5 ). I cloned and builded an open cascade library and there is an executable in directory for testing. When I type ./DRAWEXE on command prompt, I got following result. dyld:…
Wilmort
  • 294
  • 2
  • 15
4
votes
1 answer

Getting (t, c, k) values from OpenCascade surfaces

I've created a library for creating and using b-spline surfaces in Python, utilizing parallel scipy.interpolate.RectBivariateSpline() instances to hold the knot vectors, (X, Y, Z) control point mesh, and degrees in u and v (the (t, c, k) tuple…
subnivean
  • 1,132
  • 11
  • 19
3
votes
0 answers

How to install and import OpenCascade for my Windows C++ project?

I would like to use OpenCascade for my Windows C++ project. I'm using CMake for configuring my project. I just installed OpenCascade windows installer(VC++ 2017 64 bit: opencascade-7.6.0-vc14-64.exe) in my PC and import it in my CMakeLists.txt file.…
WOOSEOK CHOI
  • 165
  • 9
3
votes
3 answers

pyOCCT vs PythonOCC for new project (2020)

I am starting a new project with some 3D CAD objects to be generated from a specific domain data. I can code it with c++ using OpenCascade but I prefer to use Python if possible. There are two popular occ python bindings: pyOCCT and PythonOCC, both…
mnesarco
  • 2,619
  • 23
  • 31
3
votes
1 answer

Opencascade crash when calling calling Transfer()

I have tested two cases: I use STEPCAFControl_Reader then STEPControl_Reader to read my step file but both methods crash when I call STEPCAFControl_Reader::Transfer, repsectively STEPControl_Reader:: TransferRoots. By using STEPControl_Reader, I…
Valimo Ral
  • 381
  • 2
  • 15
3
votes
2 answers

How to visualizing .stp file in 3d using OpenCascade?

I have read the .stp files using OpenCascade library, but I am not able to visualize it. How to use OpenCascade library to visualize (render) the .stp file.
3
votes
2 answers

OpenCascade: brep read fails

OpenCascade does not load some brep file but if I try to load with FreeCad they works. The code is: #include #include #include #include int main(int argc, char *argv[]) { …
JMJ
  • 31
  • 2
3
votes
0 answers

Opencascade Step export -> additional coordinate systems(AXIS2_PLACEMENT_3) for DIN4003 compliance

My goal is to make a valid DIN4003 step export of a milling tool. The tool exists of one compound which holds 2 solid for CUT and NOCUT layers. I implemented this via the TopoDS_Shape classes. Both TopoDS_Shape and the step output works fine. But to…
S. R.
  • 31
  • 3
1
2 3
10 11