Exemplo n.º 1
0
 internal ArcEntity()
 {
     CenterPoint = new PointEntity();
     Normal      = DsVector.ByCoordinates(0, 0, 1);
     Radius      = 1;
     StartAngle  = 30;
     SweepAngle  = 60;
 }
Exemplo n.º 2
0
 internal ArcEntity()
 {
     CenterPoint = new PointEntity();
     Normal = DsVector.ByCoordinates(0, 0, 1);
     Radius = 1;
     StartAngle = 30;
     SweepAngle = 60;
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
 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));
 }
Exemplo n.º 6
0
 internal LineEntity()
 {
     StartPoint = new PointEntity();
     EndPoint = new PointEntity(1, 1, 1);
 }
Exemplo n.º 7
0
 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;
 }
Exemplo n.º 8
0
 internal LineEntity()
 {
     StartPoint = new PointEntity();
     EndPoint   = new PointEntity(1, 1, 1);
 }
Exemplo n.º 9
0
        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));
        }
Exemplo n.º 10
0
 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;
 }