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
3
votes
1 answer

OpenCascade ErrorStatus

i use OpenCasCade 6.7.0. When I Call the function BRepAlgoAPI_Cut and check ErrorStatus() i get 114 as result. Watching in documentation i got following Information: 0 - Ok 1 - The Object is created but Nothing is Done 2 - Null source shapes…
R00st3r
  • 954
  • 1
  • 10
  • 31
3
votes
3 answers

Export from OpenCascade, import into OpenSceneGraph

We have a modeling tool which uses OCC, and a 3d editor using OSG. What I want to do is, export the model from the first tool and import into the second tool. I have been searching the web for days, but I can't find a solution. Three things can…
erelender
  • 6,175
  • 32
  • 49
3
votes
0 answers

OpenCASCADE: extracting shape based on color from a STEP object

If a user has defined curves or faces within a STEP file with colors, I'm able to read in the colors from the STEP file and create a list with this snippet: Handle_XCAFDoc_ColorTool colorList =…
Dan C.
  • 41
  • 8
3
votes
0 answers

Reading STEP properties with pythonocc

I'm struggling to read presentation layer assignments out of an AP214 STEP CAD file with pythonocc. The file will read in, but I only get 1 shape and I'm not sure how to access any other attributes of the OCC.TopoDS.TopoDS_Shape object. I tried to…
Mark Swift
  • 63
  • 5
3
votes
2 answers

Which CAD / geometry library should I use: CGAL Open CASCADE or Boost::Geometry something else?

For a customizable laser-cut drawers project I would like to be able to create the connection between any two intersecting perpendicular "2D" objects (with width) programmatically. For this I need to: load and save 2D objects in some standard…
rantash68
  • 47
  • 1
  • 6
3
votes
1 answer

With OpenCascade, how to do a collision detection of 2 shapes fast?

With OpenCascade, how to do a collision detection of 2 shapes? There may be several ways. One is to calculate their intersection, and check the intersection results. Another way is to calculate their minimal distance. Which way is faster? Or any…
user1899020
  • 13,167
  • 21
  • 79
  • 154
3
votes
3 answers

How to build OpenCASCADE on MAC (Mountain Lion)

I am trying to build OpenCASCADE on Mac, but I am not having any luck. I downloaded it from Github in tar.gz, but I am really new to Mac and I am stuck. Can anybody explain what should be my next step? (I found some terminal commands what I should…
Silex
  • 2,583
  • 3
  • 35
  • 59
2
votes
0 answers

embedding an X11 widget in Cocoa

I'm working on pythonocc, which exposes the OpenCasCade API in a pythonic manner. OCC is coupled to either the windows or X11 gui environment. This is somewhat problematic on OSX; I need to build [Py]Qt4 for X11, rather than Cocoa, which makes…
Jelle
  • 690
  • 4
  • 13
2
votes
0 answers

Opencascade read step file surface information

Background I am using Opencascade to read the curve and surface geometric information in the step file, such as the following code: bool HighOrder::FileIO_3D::read_step(std::string & stepFile) { STEPControl_Controller::Init(); …
OlW
  • 142
  • 1
  • 4
2
votes
2 answers

Access STEP Instance ID's with PythonOCC

Let's suppose I'm using this STEP file data as input: #417=ADVANCED_FACE('face_1',(#112),#405,.F.); #418=ADVANCED_FACE('face_2',(#113),#406,.F.); #419=ADVANCED_FACE('face_3',(#114),#407,.F.); I'm using pythonocc-core to read the STEP file. Then the…
Florian Ludewig
  • 4,338
  • 11
  • 71
  • 137
2
votes
0 answers

How to integrate the AIS_INTERACTIVE_CONTEXT inside the GLArea?

I want to integrate the AIS_INTERACTIVE_CONTEXT inside the GLArea in order to display a model. The GLArea widget is taken from a Glade file. The code is incomplete becouse I dont know what to do next. The code is built with the help of…
XoDefender
  • 33
  • 6
2
votes
1 answer

Pointless data repetition in STEP file

In a STEP file I generated with OpenCascade, I can see this: #58 = VERTEX_POINT('',#59); #59 = CARTESIAN_POINT('',(-0.5,-0.5,-0.5)); #60 = VERTEX_POINT('',#61); #61 = CARTESIAN_POINT('',(0.5,-0.5,-0.5)); #62 =…
widgg
  • 1,358
  • 2
  • 16
  • 35
2
votes
1 answer

generate G-code | decompose b-spline to circular sections

I'm trying to decompose a b-spline to a set of circle definitions. I'm trying to generate G-code; the idea here is to segment a b-spline into a number of circular interpolations [ G02 ]. Using PythonOCC I can break up the b-spline into a number of…
Jelle
  • 690
  • 4
  • 13
2
votes
0 answers

Finding connected faces of a CAD model

I have two types of sheet metal CAD models Faces; ModelFace (PLANAR faces) and ModelBend (NON-PLANAR, exist between ModelFaces and represent the bends of a sheetmetal). These faces are stored in seperate vectors. What I want to do is to find the…
Minathe
  • 630
  • 1
  • 5
  • 21
2
votes
1 answer

What is the purpose of `BRepLib::BuildCurves3d` calls in the OpenCASCADE tutorial?

As an OpenCASCADE newbie, I am reading the OpenCASCADE tutorial: https://www.opencascade.com/doc/occt-7.4.0/overview/html/occt__tutorial.html There are following two curious…
1
2
3
10 11