Fix wrong handling spine borders conditions.

The closed predicate was applied to the cross section curve instead of spine
by mistake.
Fix extrusion orientation calculation order.

Base orientation (SCP as defined in VRML97 spec) was applied before suborientation
defined in the scene.