Skip to content

Pythonocc and Flask #1325

Open
Open
@cesarecaoduro

Description

@cesarecaoduro

I’m wondering if anyone has tried to create a REST api that exposes functionalities from pythonocc.
Something similar to what Rhino Compute does with Rhino and Grasshopper.
I’ve quickly tried today to create an endpoint to expose the creation of an edge based on 2 points, trying to use gp_Pnt as input type and TopoDS_Edge as return object, but obviously that didn’t work.
Now I can create some DTO to wrap the coordinates of a point, but it becomes a lot more complex to start wrapping an edge.
Ultimately I was trying to have a few endpoints to create a series of edges and pass them to another endpoint to create a wire, to finally extract a point along the wire.
All of this pretty straight forward from a coding perspective, but not as straight forward if you want to create a geometry kernel as a service.
Thoughts?
This might really be game changer as I think also at the implication can have with other libraries like IfcOpenshell.
Cheers!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions