Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
41 views

I'm exporting a 3D model to GLB format using pythonOCC. During export, I store custom metadata on each face using TDataStd_NamedData: ... user_data = TDataStd_NamedData.Set(some_shape_label) user_data....
Sankalp Dhupar's user avatar
1 vote
2 answers
179 views

I needed to use python occ so I installed anaconda and now I'm not sure why QtPdf is not working while everything else seems to be fine. I haven't used anaconda before. Steps: conda create -n xxxx ...
Robert18799's user avatar
0 votes
0 answers
55 views

I am using pythonOCC 7.8.1.1 to compute a bounding cylinder for a shape imported from a STEP file. The shape is axis-aligned and the geometry appears correct. However, when I calculate the bounding ...
Sankalp Dhupar's user avatar
1 vote
0 answers
115 views

I have a step file that I am ingesting using python-occ. I want to retrieve all shapes that match a specific name. Currently I am reading the step as raw text and using regex to get the entity id of ...
Liam Cottrell's user avatar
1 vote
1 answer
221 views

I am writing some code in Python using OCC that takes a list of gp_Pnt points and then starting at the tip makes a cone followed by a whole bunch of cylinders fused with spheres one after another to ...
Sam Street's user avatar
2 votes
0 answers
1k views

I'm getting started with pythonOCC for my thesis and I'm already struggling at the installation-part. I managed to install pythonOCC (7.7.0) inside a venv with python 3.9 via Anaconda (took me longer ...
MrJ's user avatar
  • 31
1 vote
0 answers
194 views

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),...
Jorge Fernandes's user avatar
1 vote
1 answer
189 views

This is my code from PySide2.QtCore import * from PySide2.QtGui import * from PySide2.QtWidgets import * from OCC.Core.BRepPrimAPI import BRepPrimAPI_MakeBox from OCC.Display.OCCViewer import ...
Tim's user avatar
  • 21
0 votes
0 answers
914 views

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, ...
tq343's user avatar
  • 95
2 votes
2 answers
3k views

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 ...
Florian Ludewig's user avatar
1 vote
0 answers
1k views

I am really new to this so any help is appreciated so basically I am trying to use PyTorch geometric to identify topological features within 3D CAD models (i.e. slots, pockets, holes, etc) but in ...
Shubham Verma's user avatar
1 vote
1 answer
511 views

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(...
Khabbab Zakaria's user avatar
0 votes
1 answer
1k views

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 ...
lanhao945's user avatar
  • 460
0 votes
0 answers
641 views

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 ...
Ram's user avatar
  • 13
0 votes
1 answer
1k views

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 ...
Thaddeus Hughes's user avatar
0 votes
0 answers
348 views

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 ...
Zofit Allouche's user avatar
1 vote
1 answer
804 views

I am trying to extract box dimensions from the STP file and it's worked for a some of the samples, but unfortunately, I got the wrong extraction for the other samples for example below zipped STP file ...
nom kml's user avatar
  • 11
0 votes
1 answer
2k views

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==...
user1584421's user avatar
  • 3,931
1 vote
0 answers
1k views

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. Normally, when I call the render() function, the following outputs ...
imgeaslikok's user avatar
0 votes
2 answers
1k views

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 ...
imgeaslikok's user avatar
4 votes
0 answers
1k views

I am trying to install pythonOCC. Their website says in order to download use conda/anaconda. Instructions are here: http://www.pythonocc.org/download/ Specifically it says to type this command: $ ...
user1584421's user avatar
  • 3,931
1 vote
1 answer
3k views

I have a Django application which it's deployed to Amazon Elastic Beanstalk(Python 3.7 running on 64bit Amazon Linux 2/3.0.3). I have installed anaconda and pythonocc-core package by creating a ...
imgeaslikok's user avatar
3 votes
0 answers
833 views

I'm installing pythonocc without conda environment in Docker. After it shows "Installing: /usr/lib/python3/dist-packages/OCC/Wrapper/__init__.py" implying that I've successfully installed ...
Joseph lzd's user avatar
3 votes
3 answers
7k views

I am starting a new project with some 3D CAD objects to be generated from a specific domain data. I can code it with c++ using OpenCascade but I prefer to use Python if possible. There are two popular ...
mnesarco's user avatar
  • 2,826