File tree Expand file tree Collapse file tree
Domain Libraries/Geometry Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ package ShapeItems {
1414 private import ControlFunctions::'?';
1515
1616 /**
17- * A PlanarCurve is a flat Surface with a given area .
17+ * A PlanarCurve is a Curve with a given length embeddable in a plane .
1818 */
1919 item def PlanarCurve :> Curve {
20- attribute :>> area [1] ;
20+ attribute :>> length [1] ;
2121
2222 constraint { notEmpty(outerSpaceDimension) & outerSpaceDimension <= 2 }
2323 }
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ package Objects {
1616 private import SequenceFunctions::notEmpty;
1717 private import SequenceFunctions::union;
1818 private import CollectionFunctions::contains;
19- private import ScalarValues::Integer;
19+ private import ScalarValues::Integer;
20+ private import ScalarValues::Natural;
2021
2122 /**
2223 * Object is the most general class of structural occurrences that may change over time.
@@ -81,9 +82,9 @@ package Objects {
8182 struct all Surface specializes Object {
8283 feature redefines innerSpaceDimension = 2;
8384 /* The number of "holes" in this Surface, assuming it isClosed. */
84- feature genus : Integer [0..1] default 0;
85+ feature genus : Natural [0..1] default 0;
8586
86- inv { notEmpty(genus) implies ( isClosed & genus >= 0) }
87+ inv { notEmpty(genus) implies isClosed }
8788 }
8889
8990 /*
You can’t perform that action at this time.
0 commit comments