OCXStandard / OCX_Schema

The Open Class 3D Exchange (ocx) schema
Apache License 2.0
8 stars 5 forks source link

Simplify ocx:NURBS3D's and ocx:NURBSSurface control point representation #128

Closed zooid closed 8 months ago

zooid commented 8 months ago

There's the ocx:Origin derived class from ocx:Point3D image

There's the ocx:CenterOfGravity derived from ocx:Point3D image

Then there's ocx:ControlPoint from NURBS3D or NURBSSurface image

image

Suggestion: making ocx:ControlPoint derived from ocx:Point3D and overloading additional attribute for 'weight'. This will reduce the size of the files significantly.

<ocx:ControlPoint weight="1" coordinates="0.0 0.0 0.0" unit="Um" />

instead of:

<ocx:ControlPoint weight="1" >
    <ocx:Point3D coordinates="0.0 0.0 0.0" unit="Um" />
</ocx:ControlPoint>