internal ArcEntity() { CenterPoint = new PointEntity(); Normal = DsVector.ByCoordinates(0, 0, 1); Radius = 1; StartAngle = 30; SweepAngle = 60; }
public IConeEntity ConeByRadiusLength(ICoordinateSystemEntity cs, double startRadius, double endRadius, double height) { DSGeometryApplication.Check(); ConeEntity cone = new ConeEntity(); IPointEntity startPoint = cs.Origin; IPointEntity endPoint = new PointEntity(cs.Origin.X, cs.Origin.Y, cs.Origin.Z + height); cone.UpdateCone(startPoint, endPoint, startRadius, endRadius); return(cone); }
public ICoordinateSystemEntity Translate(IVectorEntity translationVector) { CoordinateEntity cs = new CoordinateEntity(); PointEntity pt = new PointEntity() { X = cs.Origin.X + translationVector.X, Y = cs.Origin.Y + translationVector.Y, Z = cs.Origin.Z + translationVector.Z }; cs.Set(pt, this.XAxis, this.YAxis, this.ZAxis); return(cs); }
public void UpdateCuboid(double[] data, double length, double width, double height) { PointEntity origin = new PointEntity(data[0], data[1], data[2]); ContextCoordinateSystem = new CoordinateEntity(origin, DsVector.ByCoordinates(length, 0, 0), DsVector.ByCoordinates(0, width, 0), DsVector.ByCoordinates(0, 0, height)); }
internal LineEntity() { StartPoint = new PointEntity(); EndPoint = new PointEntity(1, 1, 1); }
public ICoordinateSystemEntity Translate(IVectorEntity translationVector) { CoordinateEntity cs = new CoordinateEntity(); PointEntity pt = new PointEntity() { X = cs.Origin.X + translationVector.X, Y = cs.Origin.Y + translationVector.Y, Z = cs.Origin.Z + translationVector.Z }; cs.Set(pt, this.XAxis, this.YAxis, this.ZAxis); return cs; }
public void UpdateCuboid(double[] data, double length, double width, double height) { PointEntity origin = new PointEntity(data[0], data[1], data[2]); ContextCoordinateSystem.Set(origin, DsVector.ByCoordinates(length, 0, 0), DsVector.ByCoordinates(0, width, 0), DsVector.ByCoordinates(0, 0, height)); }
public IConeEntity ConeByRadiusLength(ICoordinateSystemEntity cs, double startRadius, double endRadius, double height) { DSGeometryApplication.Check(); ConeEntity cone = new ConeEntity(); IPointEntity startPoint = cs.Origin; IPointEntity endPoint = new PointEntity(cs.Origin.X, cs.Origin.Y, cs.Origin.Z + height); cone.UpdateCone(startPoint, endPoint, startRadius, endRadius); return cone; }