Display a spline

I want to use <geometry>/<spline> to display a square.

I define the square in geometry
<geometry id=“carre-lib” name=“carre”>
<spline closed=“true”>
<source id=“carre-position”>
<float_array id=“carre-input-array” count=“12”>
200 0 0
0 200 0
-200 0 0
0 -200 0
</float_array>
<technique_common>
<accessor source="#carre-input-array" count=“4” stride=“3”>
<param name=“X” type=“float”/>
<param name=“Y” type=“float”/>
<param name=“Z” type=“float”/>
</accessor>
</technique_common>
</source>
<source id=“carre-interpolations”>
<Name_array id=“carre-interpolations-array” count=“4”>
LINEAR LINEAR LINEAR LINEAR
</Name_array>
<technique_common>
<accessor source="#carre-interpolations-array" count=“4” stride=“1”>
<param name=“INTERPOLATION” type=“Name”/>
</accessor>
</technique_common>
</source>
<control_vertices>
<input semantic=“POSITION” source="#carre-position"/>
<input semantic=“INTERPOLATION” source="#carre-interpolations"/>
</control_vertices>
</spline>
</geometry>

I add this statement for visualization
<library_visual_scenes>
<visual_scene id=“VisualSceneNode” name=“untitled”>
<node id=“tcarre” name=“tcarre”>
<instance_geometry url="#carre-lib"></instance_geometry>
</node>
</visual_scene>
</library_visual_scenes>

With the viewer Collview I don’t see anything

Is the declaration in geometry wrong ??
Is the declaration in visual_scene wrong ??

Thanks

Hi ZINS,

I assume by “Collview” you mean the program from pinecoast software?

It’s possible that they don’t support splines, not all programs do. Many just support polygon geometry. I didn’t see a feature list on their website so I’m not really sure if they support it or not.

Unfortunately, I don’t know which viewers have support for <spline>

Greg