public IfcGeometricRepresentationContext AddGeometricContext() { //Ex: #38= IFCGEOMETRICREPRESENTATIONCONTEXT($,'Model',3,0.000010,#36,#37); var dimCount = new IfcDimensionCount(3); var location = new IfcCartesianPoint(new List <IfcLengthMeasure> { 0, 0, 0 }); var up = new IfcDirection(new List <IfcReal> { 0, 0, 1 }); var x = new IfcDirection(new List <IfcReal> { 1, 0, 0 }); this.AddEntity(location); this.AddEntity(up); this.AddEntity(x); var place3d = new IfcAxis2Placement3D(location, up, x); var worldCs = new IfcAxis2Placement(place3d); var north = new IfcDirection(new List <IfcReal> { 0, 1, 0 }); // this.AddEntity(worldCs); this.AddEntity(place3d); this.AddEntity(north); var geo = new IfcGeometricRepresentationContext(null, new IfcLabel("Model"), new IfcDimensionCount(3), 0.000010, worldCs, north); this.AddEntity(geo); return(geo); }
} // inverse /// <summary> /// Construct a IfcGeometricRepresentationContext with all required attributes. /// </summary> public IfcGeometricRepresentationContext(IfcDimensionCount coordinateSpaceDimension, IfcAxis2Placement worldCoordinateSystem) : base() { HasSubContexts = new List <IfcGeometricRepresentationSubContext>(); HasCoordinateOperation = new List <IfcCoordinateOperation>(); CoordinateSpaceDimension = coordinateSpaceDimension; WorldCoordinateSystem = worldCoordinateSystem; }
public IfcRepresentationMap(IfcAxis2Placement mappingOrigin, IfcRepresentation mappedRepresentation) : base() { HasShapeAspects = new List <IfcShapeAspect>(); MapUsage = new List <IfcMappedItem>(); MappingOrigin = mappingOrigin; MappedRepresentation = mappedRepresentation; }
public IfcGeometricRepresentationContext(IfcLabel contextIdentifier, IfcLabel contextType, IfcDimensionCount coordinateSpaceDimension, IfcReal precision, IfcAxis2Placement worldCoordinateSystem, IfcDirection trueNorth) : base(contextIdentifier, contextType) { HasSubContexts = new List <IfcGeometricRepresentationSubContext>(); HasCoordinateOperation = new List <IfcCoordinateOperation>(); CoordinateSpaceDimension = coordinateSpaceDimension; Precision = precision; WorldCoordinateSystem = worldCoordinateSystem; TrueNorth = trueNorth; }
public IfcGeometricRepresentationSubContext(IfcLabel contextIdentifier, IfcLabel contextType, IfcDimensionCount coordinateSpaceDimension, IfcReal precision, IfcAxis2Placement worldCoordinateSystem, IfcDirection trueNorth, IfcGeometricRepresentationContext parentContext, IfcPositiveRatioMeasure targetScale, IfcGeometricProjectionEnum targetView, IfcLabel userDefinedTargetView) : base(contextIdentifier, contextType, coordinateSpaceDimension, precision, worldCoordinateSystem, trueNorth) { ParentContext = parentContext; TargetScale = targetScale; TargetView = targetView; UserDefinedTargetView = userDefinedTargetView; }
} // derived /// <summary> /// Construct a IfcGeometricRepresentationSubContext with all required attributes. /// </summary> public IfcGeometricRepresentationSubContext(IfcDimensionCount coordinateSpaceDimension, IfcAxis2Placement worldCoordinateSystem, IfcGeometricRepresentationContext parentContext, IfcGeometricProjectionEnum targetView) : base(coordinateSpaceDimension, worldCoordinateSystem) { ParentContext = parentContext; TargetView = targetView; }
public IfcPlanarBox(IfcLengthMeasure sizeInX, IfcLengthMeasure sizeInY, IfcAxis2Placement placement) : base(sizeInX, sizeInY) { Placement = placement; }
public IfcConic(IfcAxis2Placement position) : base() { Position = position; }
public IfcLocalPlacement(IfcObjectPlacement placementRelTo, IfcAxis2Placement relativePlacement) : base() { PlacementRelTo = placementRelTo; RelativePlacement = relativePlacement; }
/// <summary> /// Construct a IfcLocalPlacement with all required attributes. /// </summary> public IfcLocalPlacement(IfcAxis2Placement relativePlacement) : base() { RelativePlacement = relativePlacement; }
public IfcTextLiteralWithExtent(IfcPresentableText literal, IfcAxis2Placement placement, IfcTextPath path, IfcPlanarExtent extent, IfcBoxAlignment boxAlignment) : base(literal, placement, path) { Extent = extent; BoxAlignment = boxAlignment; }
public IfcEllipse(IfcAxis2Placement position, IfcPositiveLengthMeasure semiAxis1, IfcPositiveLengthMeasure semiAxis2) : base(position) { SemiAxis1 = semiAxis1; SemiAxis2 = semiAxis2; }
public IfcTextLiteral(IfcPresentableText literal, IfcAxis2Placement placement, IfcTextPath path) : base() { Literal = literal; Placement = placement; Path = path; }
public IfcCircle(IfcAxis2Placement position, IfcPositiveLengthMeasure radius) : base(position) { Radius = radius; }
public static bool?IfcCorrectLocalPlacement(IfcAxis2Placement axisPlacement, IfcObjectPlacement relPlacement) { throw new NotImplementedException(); }
public static bool?IfcSameAxis2Placement(IfcAxis2Placement ap1, IfcAxis2Placement ap2, double epsilon) { throw new NotImplementedException(); }