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
1
vote
1 answer

Incorrect result when saving Opensubdiv patches using Open Cascade

I am trying to save patches from OpenSubdiv subdivision using Open Cascade for one of my app that I am trying to build for subdivision surfaces. This is pretty similar to the thread -…
rsp
  • 537
  • 2
  • 13
1
vote
1 answer

Compile OCCT7.5 with rapidjson using FreeCad Libpack?

I'm looking to compile OCCT 7.5 in Windows 10 (x64 via VS2019) for use with FreeCAD, to enable exporting glTF files, which requires RapidJSON support (in OCCT). I've checked out OCCT 7.5.3 and RapidJSON 1.1.0 from their git repos, then grabbed the…
NickT
  • 116
  • 1
  • 8
1
vote
0 answers

How do I preserve the colours in a STEP file when modifying the geometry in Open Cascade?

I'm writing a script in python using Open Cascade Technology (using the pyOCCT package for Anaconda) to import STEP files, defeature them procedurally and re-export them. I want to preserve the product hierarchy, names and colours as much as…
1
vote
0 answers

VTK is giving the error "Vector subscript out of range" while setting Input connection in debug

I am trying to render a OpenCascade shape using VTK and while setting the Input Connection to Mapper in VTK I am getting vector subscript out of bounds error. However, this error is only happening in debug mode and not in Release mode. The assertion…
lokit khemka
  • 349
  • 3
  • 11
1
vote
1 answer

Opencascade surface from points

I just want to write two simple functions with opencascade to be called from a C# winform application: one for create a surface from points, one for get the points of the surface. I don't write in C++, but following opencascade samples and by…
Giovanni
  • 13
  • 5
1
vote
0 answers

How can I define the normal vector of a surface? Transfer surface to a plane first, then define vector of plane? Debugging: downcast no longer needed?

When debugging from a previous Python code (2.7) to (3.7) error messages occured. (from pythonocc-core==0.18.1 to pythonocc-core=7.4.1) First I applied 2to3.py, but code needed some further debugging. Following code caused error at "plane =…
manonbllz
  • 11
  • 1
1
vote
1 answer

Increase Memory of opencascade project

My opencascade project is built in visual c++ environment. My problem is that when I try to run the program there is an error as, "Fatal Error in graphic initialization." Can I use a bat file and set the memory allocation using it and how? Please…
gishara
  • 815
  • 2
  • 15
  • 41
1
vote
1 answer

Get geometry from a IFC 3D entity using Ifcopenshell and OpenCascade

I have multiple standard formed bricks in an IFC file of the type IfcBuildingElementProxy. While I already managed to extract their positions from the IFC file, I now struggle to get the geometry (lenght, height, widht) from the file. I know that…
1
vote
1 answer

Preventing Opencascade to write to console

When using the OpenCascade C++ libaries, certain functions will print out some status or response to the console/terminal. For example STEPCAFControl_Writer::perform() will print out something…
remi
  • 937
  • 3
  • 18
  • 45
1
vote
1 answer

removing unused objects from a glTF 2.0 file

I used opencascade's module to export from step to glb . I tried to read the glb file with blender and it works just fine . I then imported it to babylon and it crashed . I posted the file on Khronos's glTF validator and it reported lots of unused…
tawfikboujeh
  • 135
  • 1
  • 13
1
vote
1 answer

Get length scale factor of STEP CAD file with OpenCASCADE

I am trying to get the length unit conversion factor in OpenCASCADE, when importing a STEP format CAD file. In my test file the entity #184 sets the length to meters and during import will be converted to milimeters used by OpenCASCADE internally by…
JacobP
  • 561
  • 3
  • 21
1
vote
1 answer

Open Cascade Write glTF Writer

Open Cascade has glTF writer in their current development branch - RWGltf_CafWriter I am trying to convert STP to glTF using it and got starting point from this question - Any Open source Libraries to Convert STEP files to glTF file format? It looks…
user2682204
  • 53
  • 1
  • 5
1
vote
1 answer

OpenCascade: Cylindrical Face with Boundary Wire

I want to make the face of half a cylinder, using the boundary edges (two vertical lines and two 180° arcs). I know there are easier ways to do this, but my real problem is much more complex, and the edges I have are mostly splines. So, I tried to…
KungPhoo
  • 516
  • 4
  • 18
1
vote
1 answer

How can i show the side in OpenCascade with color?

I have a .step File and i need to make images from the sides for a project. Now i have the problem that the sides are all white. To get the side i change viewpoint and for now i change it a bit to show the colors but that does often not work and the…
Flo
  • 51
  • 8
1
vote
0 answers

How to export STEP to STL into separate files using OpenCascade and C++

I'm looking for methods to export a STEP file into separate STL ones, and extracting relevant information from each of the parts (such as position in the whole model, rotation [if any], colors, and material [if possible]), so I use those in another…
lghizoni
  • 113
  • 10