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

Modify entities' parameters after importing the STEP file? Is it Possible?

Open JosephLZD opened this issue 4 years ago • 1 comments

Hi, I'm wondering if it is possible to modify entities' parameters after importing the .stp file, then to export it as a .stp file again?

For example, this is a tilted cup, and I can output its info (locations, radius...). Although I can do translation, I have no idea how to modify its radius except for redrawing the entity. What if the entity is complex and hard to be redrawn?

Any help would be greatly appreciated!

屏幕快照 2020-08-21 下午5 20 04

Face selected: <class 'TopoDS_Face'> --> cylinder radius: 40.0 coefficients: (1.0, 0.25000000000018996, 0.7499999999998102, 0.0, 0.0, 0.43301270189232904, 0.0, -0.0, -0.0, -1600.0) --> Location (global coordinates) 0.0 0.0 0.0 --> Axis (global coordinates) 0.0 -0.866025403784329 0.50000000000019

JosephLZD avatar Aug 21 '20 09:08 JosephLZD

i'd be interested in this as well - a short "it's possible" would actually be sufficient for now

olsn avatar Apr 01 '21 16:04 olsn