ENTITY hexahedron_volume SUBTYPE OF (volume); points : LIST [8:8] OF cartesian_point; WHERE wr1: above_plane(points[1], points[2], points[3], points[4]) = 0.0; wr2: above_plane(points[5], points[8], points[7], points[6]) = 0.0; wr3: above_plane(points[1], points[4], points[8], points[5]) = 0.0; wr4: above_plane(points[4], points[3], points[7], points[8]) = 0.0; wr5: above_plane(points[3], points[2], points[6], points[7]) = 0.0; wr6: above_plane(points[1], points[5], points[6], points[2]) = 0.0; wr7: same_side([points[1], points[2], points[3]], [points[5], points[6], points[7], points[8]]); wr8: same_side([points[1], points[4], points[8]], [points[3], points[7], points[6], points[2]]); wr9: same_side([points[1], points[2], points[5]], [points[3], points[7], points[8], points[4]]); wr10: same_side([points[5], points[6], points[7]], [points[1], points[2], points[3], points[4]]); wr11: same_side([points[3], points[7], points[6]], [points[1], points[4], points[8], points[5]]); wr12: same_side([points[3], points[7], points[8]], [points[1], points[5], points[6], points[2]]); wr13: points[1].dim = 3; END_ENTITY; -- hexahedron_volume |
Entity data types and their attributesrepresentation_itemname: label; geometric_representation_item (DER) dim: dimension_count; volume - hexahedron_volume points: LIST [8:8] OF cartesian_point; |
Global rules for this entity data type- |
public interface EHexahedron_volume extends EVolumepoints (explicit attribute)boolean testPoints(EHexahedron_volume type)ACartesian_point getPoints(EHexahedron_volume type) ACartesian_point createPoints(EHexahedron_volume type) void unsetPoints(EHexahedron_volume type) |
public class CHexahedron_volume implements EHexahedron_volumestatic EAttribute attributePoints(EHexahedron_volume type)static int usedinPoints(EHexahedron_volume type, ECartesian_point instance, ASdaiModel domain, AHexahedron_volume result) |
public class AHexahedron_volume extends AEntitypublic EHexahedron_volume getByIndex(int index)public EHexahedron_volume getCurrentMember(SdaiIterator it) |