orbingol / rw3dm

Rhino/OpenNURBS importer and exporter for NURBS-Python (geomdl)
MIT License
34 stars 11 forks source link

json2on: Fix trim curve export #7

Closed orbingol closed 4 years ago

orbingol commented 5 years ago

json2on can generate the trims of the BRep faces but it does not support converting inner trim curves from geomdl JSON to OpenNURBS .3dm format.

Batmanabcdefg commented 4 years ago

is it solved in the new version?

orbingol commented 4 years ago

is it solved in the new version?

@OVGULIU not yet. I am still working on it.

orbingol commented 4 years ago

Currently, trimmed surfaces are somewhat working in devmaster branch. I couldn't find the Split function in OpenNURBS (I don't think Rhino-version of Split exists in OpenNURBS), so it doesn't split the trimming curve but it adds it to the BRep structure.

What you need to do is export a surface with a closed B-spline trimming curve, i.e. last point of the curve == first point of the curve, detach the trim in Rhino and split the surface with the curve.

I guess this is the closest I can get for the trimming surfaces.