Making spline from wire edges using Catmull-Clark subdivision(as in modifier)

Hi.I`m trying to find way to recreate Catmull-Clark subdivision for edges with no polygons, “wire edges”. But I dont understand how to implement this algorithm without polygons.
I want my result mesh exactly match with Blender smoothed mesh.

Will appreciate any help, thanks!

What kind of “wire edges” are you dealing with? Depending on how well behaved your meshes are, it shouldn’t be too hard to find edge loops corresponding to each “face” and doing the usual Catmull Clark subdivision on them. I’ll check back in tomorrow with more details

Wire edges - edges without polygons.

bmesh.types.BMEdge.is_wire

Do you mean without faces??