@@ -17,9 +17,9 @@ package ShapeItems {
1717 * A PlanarCurve is a Curve with a given length embeddable in a plane.
1818 */
1919 item def PlanarCurve :> Curve {
20- attribute :>> length [1] ;
20+ attribute :>> length [1];
2121
22- constraint { notEmpty(outerSpaceDimension) & outerSpaceDimension <= 2 }
22+ assert constraint { notEmpty(outerSpaceDimension) & outerSpaceDimension <= 2 }
2323 }
2424
2525 /**
@@ -113,7 +113,7 @@ package ShapeItems {
113113 item bf : Disc [1] :> faces;
114114 item af : Disc [0..1] :> faces;
115115 item cf : Surface [1] :> faces;
116- constraint { (apexRadius == 0) == isEmpty(af) }
116+ assert constraint { (apexRadius == 0) == isEmpty(af) }
117117
118118 item :>> edges : Circle [2..4];
119119 item be [2] :> edges {
@@ -122,10 +122,10 @@ package ShapeItems {
122122 item ae [0..2] :> edges {
123123 attribute :>> radius = apexRadius;
124124 }
125- constraint { isEmpty(af) ? isEmpty(ae) : size(ae) == 2 }
125+ assert constraint { isEmpty(af) ? isEmpty(ae) : size(ae) == 2 }
126126
127127 item :>> vertices [0..1];
128- constraint { isEmpty(ae) == notEmpty(vertices) }
128+ assert constraint { isEmpty(ae) == notEmpty(vertices) }
129129
130130 /* Faces to edges */
131131 connection :WithinBoth connect bf.edges [1] to be [0..*];
0 commit comments