pythonocc-demos icon indicating copy to clipboard operation
pythonocc-demos copied to clipboard

Examples and demos for the pythonocc CAD package

Results 41 pythonocc-demos issues
Sort by recently updated
recently updated
newest added

Small example how to use the AIS_Animation for pythonocc

Branch `master` refactored by [Sourcery](https://sourcery.ai/github/). If you're happy with these changes, merge this Pull Request using the *Squash and merge* strategy. See our documentation [here](https://docs.sourcery.ai/GitHub/Using-Sourcery-for-GitHub/). Run Sourcery locally Reduce the...

In [https://github.com/tpaviot/pythonocc-demos/blob/master/examples/core_geometry_recognize_feature.py#L118](url) SetSelectionModeFace should be called after DisplayShape

I am a beginner in PyOCC. I try to use JupyterRenderer, and write a demo as below: from OCC.Display.WebGl.jupyter_renderer import JupyterRenderer from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeBox box = BRepPrimAPI_MakeBox(1.0, 1.0, 1.0).Shape()...

Hi, While trying to understand how to display bounding box of shapes, I discovered that the example [core_geometry_oriented_bounding_box](https://github.com/tpaviot/pythonocc-demos/blob/master/examples/core_geometry_oriented_bounding_box.py) doesn't run through. Error message prompt: **Exception has occurred: RuntimeError** "Standard_ConstructionErrorgp_Dir() -...

I'm using core_load_step_with_colors.py to resolve the structure of names of a step file. I get the names using function GetLabelName() of a label. But it sometimes returns "COMPOUND" or "SOLID"...

Hi, @tpaviot I am just a new comer to opencascade. I am trying to add the ``Support`` of an ``anEdge`` in ``BRepFill_Filling.Add``. And I would like to extrude the edge...

I can't find "TopTools_ListIteratorOfListOfShape" in from OCC.Core.TopTools

question

When using the pyside6/pyqt6 backend, I tried to select the vertex at a .stp file, but when I change to the vertex selection mode, I find that cursor can't locate...

Hi there, I have found this [example ](https://github.com/tpaviot/pythonocc-demos/blob/master/examples/core_geometry_overlap.py) in this repository really helpful and tried it on my own CAD file 'three_puzzles_203.STEP' with the following code: ``` import os from...