Example #1
0
 internal ArcEntity()
 {
     CenterPoint = new PointEntity();
     Normal      = DsVector.ByCoordinates(0, 0, 1);
     Radius      = 1;
     StartAngle  = 30;
     SweepAngle  = 60;
 }
Example #2
0
 internal ArcEntity()
 {
     CenterPoint = new PointEntity();
     Normal = DsVector.ByCoordinates(0, 0, 1);
     Radius = 1;
     StartAngle = 30;
     SweepAngle = 60;
 }
Example #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);
        }
Example #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);
        }
Example #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));
 }
Example #6
0
 internal LineEntity()
 {
     StartPoint = new PointEntity();
     EndPoint = new PointEntity(1, 1, 1);
 }
Example #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;
 }
Example #8
0
 internal LineEntity()
 {
     StartPoint = new PointEntity();
     EndPoint   = new PointEntity(1, 1, 1);
 }
Example #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));
        }
Example #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;
 }