Migrate export_step / export_stl / export_brep off FreeCAD, onto build123d + OCP — Phase 3: Rewrite export_step to use STEPControl_Writer #43
Labels
No labels
blocked:needs-decision
blocked:preflight
bug
in-progress
in-progress
lint-cleanup
needs-decompose
quickfix
triage-approved
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/pc2cad#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 3: Rewrite
export_stepto useSTEPControl_WriterGoal: Replace
pc2cad.py:4991 export_step(FreeCAD +Part.export)with an OCP
STEPControl_Writerimplementation.Approach:
TopoDS_Shapevia_primitive_to_shape.TopoDS_CompoundviaTopoDS_Builder.STEPControl_Writer:w = STEPControl_Writer();w.Transfer(compound, STEPControl_AsIs);w.Write(path).Files:
pc2cad.py:4991-5066(rewriteexport_step),pc2cad.py:5063-5064(replacePart.makeCompound+Part.export).Acceptance:
python pc2cad_cli.py samples/sample_plane_cyl.ply --out /tmp/p3.stepwrites a STEP file >5 KB.
file /tmp/p3.stepreports "ISO-10303 STEP data".OCP.STEPControl_Readerreads it back without error.Decomposed from pc2cad#23
Auto-triage: needs decompose
Marked
triage-approved+needs-decompose. decompose-executor will pick this up and break it into implementable sub-issues.