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

Add internal boundary or crack in PyGmsh / Gmsh

I am trying to generate a finite element mesh using PyGmsh, using the following code: import pygmsh geom = pygmsh.opencascade.Geometry( characteristic_length_min=0.1, characteristic_length_max=0.1, ) rectangle =…
Carlos
  • 586
  • 1
  • 9
  • 19
2
votes
1 answer

How can I change the underlying geometry of a TopoDS_Shape in OpenCASCADE

I am trying to change the geometry of an existing TopoDS_Shape in OpenCASCADE. A possible application is for modifying an edge of a body without the need to reconstruct the whole body (e.g. change the radius of one cap of a cylinder, shift a control…
BR123
  • 322
  • 3
  • 16
2
votes
1 answer

Opencascade Android Studio

I am trying to build an Android application on Opencascade with the help of below url. http://www.opencascade.com/doc/occt-7.0.0/overview/html/samples_java_android_occt.html Everything works fine except I am stuck in below errors : 07-12…
Mohammad Tauqir
  • 1,817
  • 1
  • 18
  • 53
2
votes
3 answers

On Sandboxing a memory-leaky 3rd-Party DLL

I am looking for a way to cure at least the symptoms of a leaky DLL i have to use. While the library (OpenCascade) claims to provides a memory manager, i have as of yet being unable to make it release any memory it allocated. I would at least wish…
sum1stolemyname
  • 4,506
  • 3
  • 26
  • 44
2
votes
0 answers

Strange Segmentation Fault in OpenCascade

I am trying to run the following simple program which uses some classes from OpenCascade library. #include #include #include #include #include int main(int…
argasm
  • 275
  • 3
  • 15
2
votes
3 answers

C++ compiling error including X11/X.h X11/Xlib.h

I am currently porting a c++ application developed in MS VS2005 to linux and unfortunately this is the first time I am doing this. We are using Qt 4.6, Opencascade 6.5.1 and Qwt 6.0.1. Most of the code compiles just fine but at one point we are…
Bowdzone
  • 3,827
  • 11
  • 39
  • 52
1
vote
0 answers

Use opencascade.js in Vite program,when I run and then get some error : [ERROR]Could not resolve "a"

My program is typescript + three.js + vue3 + vite . My operation is as follows: // terminal npm i opencascade.js@beta npm i vite-plugin-wasm // vite.config.js import { defineConfig } from 'vite' import wasm from 'vite-plugin-wasm' export default…
1
vote
0 answers

Access .STP egde coordinates with PythonOCC

I have a .STP file where I marked an edge to be welded using Solidworks, and then I exported the file as step 242. The exported.STP file has this line: #30=TESSELLATED_SHELL('Weld Bead1',(#27,#28,#29),$); When I open the file on e-drawing the…
1
vote
1 answer

Get TopoDS_Shape from AIS_InteractiveObject

I'm very new to OPEN CASCADE. Can someone please let me know how to get the shape from AIS_InteractiveObject which used to view the shapes. Thanks. There are no direct functions to get the shapes. I checked with the class discription in Open CASCADE…
Dilruk
  • 21
  • 4
1
vote
2 answers

How to get the intersections of iso curve and boundary of TopoDS_Face in OpenCasCade?

As shown in the figure below: I want to calculate the intersections of an u direction iso curve and the boundary of TopoDS_Face in occt,but i don't know how to write the code,anyone who can give some advices or sample code with c++? Any useful…
zero
  • 33
  • 4
1
vote
1 answer

OpenCascade: highlightion and selection styles don't work properly for edges/wires and points

OpenCascade: highlightion and selection styles don't work properly for edges/wires and points, they are highlighted/selected by default color (Quantity_NOC_BLUE/Quantity_NOC_GRAY) For faces and solids everything works correctly. What advise to…
1
vote
0 answers

How to access data from .write() in opencascade.js

I'm trying to access my data from my exported step file in opencascade.js. I used this example https://github.com/donalffons/opencascade.js-examples and updated the library.js like this to export a step-file: var writer = new…
tinytree
  • 1,009
  • 2
  • 12
  • 28
1
vote
0 answers

vcpkg installed package linker issue

I started using vcpkg for my code base. I have included the following manifest { "name": "project", "version-string": "0.1.1", "dependencies" : [ "boost-filesystem", "boost-system", "boost-timer", "eigen3", "opencv", …
Ashkan
  • 1,050
  • 15
  • 32
1
vote
0 answers

Reading STEP file into Open Cascade loses size information

I'm working on reading a STEP file into my C++ application, translating it into OCCT shapes, and displaying them using VTK. Everything seems to be working fine EXCEPT the scale. The shape I'm importing is just under 20 mm in diameter according to a…
mastick
  • 31
  • 3
1
vote
0 answers

can't find definition of FT_LOAD_TARGET_LIGHT and FT_LOAD_NO_HINTING?

when I compile Visualization folder, that is the error in Font_FTFont.cxx I made the error go away by changing #ifdef HAVE_FREETYPE #include #include FT_FREETYPE_H #endif // changed to #ifndef HAVE_FREETYPE #include
1 2
3
10 11