Questions tagged [pythonocc]
24 questions
0
votes
0 answers
Extracting text from STEP files
I have a number of STEP files with text embedded in them, which I need to extract. Unfortunately, text in STEP files doesn't come in the form of characters, but in the form of curves, vertexes, splines, etc. making it very difficult to identify in…

tq343
- 95
- 11
0
votes
1 answer
stl_writer.Write not saving any file
I am trying to convert from stp to stl. The code is:
rom OCC.Core.STEPControl import STEPControl_Reader
from OCC.Core.StlAPI import StlAPI_Writer
import os
os.chdir(os.path.dirname(os.path.abspath(__file__)))
input_file = 'stl_test.stp' # input…

Khabbab Zakaria
- 383
- 3
- 6
- 19
0
votes
1 answer
How to get the distance between a point and a shape in pythonocc-core?
I had searched similar questions, With OpenCascade, how to do a collision detection of 2 shapes fast?.
Also ,here is the example srcipts: core_geometry_minimal_distance (code above)
But,It is hard for me to get any idea about : get the distance…

lanhao945
- 427
- 5
- 21
0
votes
0 answers
Problem with Python-occ build - error when running make
I'm trying to install Python-occ under ubuntu 18.04.
After installing OCE successfully, I am trying to install py-occ. When I configure and I run cmake commande it is working :
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler…

Ram
- 13
- 3
0
votes
1 answer
How to access edge dimensions in pythonocc?
I'm trying to use PythonOCC to read in wireframe data (see this link) that is in IGES or STEP format, for eventual use in building a FE beam-element model.
Where in PythonOCC can I actually extract properties about edges and curves? I've built this…

Thaddeus Hughes
- 307
- 4
- 11
0
votes
0 answers
pythonocc identify holes (and it dimension) in surface
I have an object, and I am checking it's faces (for exmaple the attached object).
First I have checked if each of it's faces is a plane/cylinder or Bspline surface.
Now, I need to check if the face has holes in it (it can have cylindrical or square…

Zofit Allouche
- 1
- 1
0
votes
1 answer
Failure to install package using Anaconda
I want to install PythonOCC.
From the official documentation (http://www.pythonocc.org/download/), i saw that i have to use:
conda install -c conda-forge -c dlr-sc -c pythonocc -c oce pythonocc-core==0.18.1
So from the base terminal, i typed that…

user1584421
- 3,499
- 11
- 46
- 86
0
votes
2 answers
Using pythonOCC's render function in Django
I have a Django application and I'm using pythonOCC package in it. I have to display the 3D .stl, .stp, .igs files in my template. I have tried to use render() function which in x3dom_renderer.py file in the package.
Here is my view:
from…

Aslı Kök
- 616
- 8
- 19
-1
votes
0 answers
'function' object has no attribute 'NewDocument'
I have some code which reads a step file and returns a shape (geometrical information). This uses the XDE of OCCD and will also be able to extract the attribute information such as colour or name or layer. But im new to pythonocc and im getting the…

Mohsin Bashir
- 1
- 1