Ejemplo n.º 1
0
 public CoordinateEntity(IPointEntity origin, IVectorEntity xAxis, IVectorEntity yAxis, IVectorEntity zAxis)
 {
     this.Origin = origin;
     this.XAxis = xAxis;
     this.YAxis = yAxis;
     this.ZAxis = zAxis;
 }
Ejemplo n.º 2
0
 public void Set(IPointEntity origin, IVectorEntity xAxis, IVectorEntity yAxis, IVectorEntity zAxis)
 {
     this.Origin = origin;
     this.XAxis  = xAxis;
     this.YAxis  = yAxis;
     this.ZAxis  = zAxis;
 }
Ejemplo n.º 3
0
 public IArcEntity ArcByCenterPointStartPointSweepAngle(IPointEntity centerPoint, IPointEntity startPoint, double sweepAngle, IVectorEntity normal)
 {
     DSGeometryApplication.Check();
     double radius = startPoint.DistanceTo(centerPoint);
     double startAngle = 30;
     return new ArcEntity(centerPoint, normal, radius, startAngle, sweepAngle);
 }
Ejemplo n.º 4
0
        public IPlaneEntity PlaneByOriginNormal(IPointEntity origin, IVectorEntity normal)
        {
            DSGeometryApplication.Check();
            IPlaneEntity plane = new PlaneEntity(origin, normal);

            return(plane);
        }
Ejemplo n.º 5
0
 public CoordinateEntity(IPointEntity origin, IVectorEntity xAxis, IVectorEntity yAxis, IVectorEntity zAxis)
 {
     this.Origin = origin;
     this.XAxis  = xAxis;
     this.YAxis  = yAxis;
     this.ZAxis  = zAxis;
 }
Ejemplo n.º 6
0
 internal ArcEntity(IPointEntity center, IVectorEntity normal, double radius, double startAngle, double sweepAngle)
 {
     this.CenterPoint = center;
     this.Normal      = normal;
     this.Radius      = radius;
     this.StartAngle  = startAngle;
     this.SweepAngle  = sweepAngle;
 }
Ejemplo n.º 7
0
 internal ArcEntity(IPointEntity center, IVectorEntity normal, double radius, double startAngle, double sweepAngle)
 {
     this.CenterPoint = center;
     this.Normal = normal;
     this.Radius = radius;
     this.StartAngle = startAngle;
     this.SweepAngle = sweepAngle;
 }
Ejemplo n.º 8
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);
        }
Ejemplo n.º 9
0
 public IGeometryEntity[] Project(IGeometryEntity iGeometryEntity, IVectorEntity iVectorEntity)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 10
0
 public IPlaneEntity PlaneByOriginXAxisYAxis(IPointEntity origin, IVectorEntity xAxis, IVectorEntity yAxis)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 11
0
 public ICircleEntity CircleByCenterPointRadiusNormal(IPointEntity center, double radius, IVectorEntity normal)
 {
     DSGeometryApplication.Check();
     return(new CircleEntity(center, radius, normal));
 }
Ejemplo n.º 12
0
 public virtual IPointEntity Project(IPointEntity point, IVectorEntity direction)
 {
     return new PointEntity();
 }
Ejemplo n.º 13
0
 public ICircleEntity CircleByCenterPointRadiusNormal(IPointEntity center, double radius, IVectorEntity normal)
 {
     DSGeometryApplication.Check();
     return new CircleEntity(center, radius, normal);
 }
Ejemplo n.º 14
0
 public virtual ISurfaceEntity Extrude(IVectorEntity direction, double distance)
 {
     return new SurfaceEntity();
 }
Ejemplo n.º 15
0
 public bool UpdateSolidByRevolve(ICurveEntity profileCurve, IPointEntity originPoint, IVectorEntity revolveAxis, double startAngle, double sweepAngle)
 {
     return false;
 }
Ejemplo n.º 16
0
 internal CircleEntity(IPointEntity center, double radius, IVectorEntity normal)
 {
     this.CenterPoint = center;
     this.Radius = radius;
     this.Normal = normal;
 }
Ejemplo n.º 17
0
 public bool IsAlmostEqualTo(IVectorEntity other)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 18
0
 public IGeometryEntity[] Project(IGeometryEntity iGeometryEntity, IVectorEntity iVectorEntity)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 19
0
 public virtual IGeometryEntity CopyAndTranslate(IVectorEntity offset)
 {
     return this;
 }
Ejemplo n.º 20
0
 public bool UpdateSubDMeshNormals(IVectorEntity[] normals)
 {
     return false;
 }
Ejemplo n.º 21
0
 public bool UpdateSubDMeshColors(IPointEntity[] vertices, IVectorEntity[] normals, IColor[] colors, int[][] faceIndices, int subDLevel)
 {
     return false;
 }
Ejemplo n.º 22
0
 public virtual IPointEntity GetClosestPointTo(IPointEntity point, IVectorEntity direction, bool extend)
 {
     return this.StartPoint;
 }
Ejemplo n.º 23
0
 public virtual IGeometryEntity CopyAndTranslate(IVectorEntity offset)
 {
     return(this);
 }
Ejemplo n.º 24
0
 public void Translate(IVectorEntity vec)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 25
0
 public IPointEntity Project(IPointEntity iPointEntity, IVectorEntity direction)
 {
     return(iPointEntity);
 }
Ejemplo n.º 26
0
 public virtual ISurfaceEntity Extrude(IVectorEntity direction, double distance)
 {
     return(new SurfaceEntity());
 }
Ejemplo n.º 27
0
 public ICoordinateSystemEntity Rotation(double rotationAngle, IVectorEntity axis, IPointEntity origin)
 {
     return new CoordinateEntity();
 }
Ejemplo n.º 28
0
 public virtual IPointEntity GetClosestPointTo(IPointEntity point, IVectorEntity direction, bool extend)
 {
     return(this.StartPoint);
 }
Ejemplo n.º 29
0
 public IGeometryEntity[] Project(IGeometryEntity geometry, IVectorEntity direction)
 {
     return new IGeometryEntity[2] { new GeometryEntity(), new GeometryEntity() };
 }
Ejemplo n.º 30
0
 public PlaneEntity(IPointEntity origin, IVectorEntity normal)
 {
     this.Origin = origin;
     this.Normal = normal;
     this.contextCS = new CoordinateEntity();
 }
Ejemplo n.º 31
0
 public INurbsCurveEntity NurbsCurveByPointsTangents(IPointEntity[] pts, IVectorEntity startTangent, IVectorEntity endTangent)
 {
     DSGeometryApplication.Check();
     return(new NurbsCurveEntity());
 }
Ejemplo n.º 32
0
 public IPointEntity Project(IPointEntity iPointEntity, IVectorEntity direction)
 {
     return iPointEntity;
 }
Ejemplo n.º 33
0
 public IPlaneEntity PlaneByOriginNormalXAxis(IPointEntity origin, IVectorEntity normal, IVectorEntity xAxis)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 34
0
 void ITransformableEntity.Translate(IVectorEntity vec)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 35
0
 public ISolidEntity SolidByRevolve(ICurveEntity profile, IPointEntity axisOrigin, IVectorEntity axisDirection, double startAngle, double sweepAngle)
 {
     DSGeometryApplication.Check();
     return(new SolidEntity());
 }
Ejemplo n.º 36
0
 public ISurfaceEntity Extrude(IVectorEntity direction)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 37
0
 public ISolidEntity SolidByRevolve(ICurveEntity profile, IPointEntity axisOrigin, IVectorEntity axisDirection, double startAngle, double sweepAngle)
 {
     DSGeometryApplication.Check();
     return new SolidEntity();
 }
Ejemplo n.º 38
0
 public virtual ICurveEntity ProjectOn(IPlaneEntity plane, IVectorEntity direction)
 {
     return new LineEntity();
 }
Ejemplo n.º 39
0
 public void Translate(IVectorEntity vec)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 40
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;
 }
Ejemplo n.º 41
0
 public PlaneEntity(IPointEntity origin, IVectorEntity normal)
 {
     this.Origin    = origin;
     this.Normal    = normal;
     this.contextCS = new CoordinateEntity();
 }
Ejemplo n.º 42
0
 public virtual IGeometryEntity[] ProjectOn(ISurfaceEntity surface, IVectorEntity direction)
 {
     return new IGeometryEntity[2] { new GeometryEntity(), new GeometryEntity() };
 }
Ejemplo n.º 43
0
 public static Vector ToVector(this IVectorEntity v)
 {
     return(Vector.ByCoordinates(v.X, v.Y, v.Z));
 }
Ejemplo n.º 44
0
 public ISolidEntity ExtrudeAsSolid(IVectorEntity direction, double distance)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 45
0
 public void Rotate(IPointEntity origin, IVectorEntity axis, double degrees)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 46
0
 public static IVectorEntity Scale(this IVectorEntity v, double scale)
 {
     return(v.ToVector().Scale(scale).ToIVector());
 }
Ejemplo n.º 47
0
 public ICoordinateSystemEntity Rotation(double rotationAngle, IVectorEntity axis, IPointEntity origin)
 {
     return(new CoordinateEntity());
 }
Ejemplo n.º 48
0
 public static double Length(this IVectorEntity v)
 {
     return(v.ToVector().Length);
 }
Ejemplo n.º 49
0
 internal CircleEntity(IPointEntity center, double radius, IVectorEntity normal)
 {
     this.CenterPoint = center;
     this.Radius      = radius;
     this.Normal      = normal;
 }
Ejemplo n.º 50
0
 public bool IsAlmostEqualTo(IVectorEntity other)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 51
0
 void ITransformableEntity.Translate(IVectorEntity vec)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 52
0
 public ICoordinateSystemEntity CoordinateSystemByOriginVectors(IPointEntity origin, IVectorEntity xAxis, IVectorEntity yAxis, IVectorEntity zAxis)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 53
0
 public void Rotate(IPointEntity origin, IVectorEntity axis, double degrees)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 54
0
        public IArcEntity ArcByCenterPointRadiusAngle(IPointEntity center, double radius, double startAngle, double endAngle, IVectorEntity normal)
        {
            DSGeometryApplication.Check();
            double sweepAngle = endAngle - startAngle;

            return(new ArcEntity(center, normal, radius, startAngle, sweepAngle));
        }
Ejemplo n.º 55
0
 public void Set(IPointEntity origin, IVectorEntity xAxis, IVectorEntity yAxis, IVectorEntity zAxis)
 {
     this.Origin = origin;
     this.XAxis = xAxis;
     this.YAxis = yAxis;
     this.ZAxis = zAxis;
 }
Ejemplo n.º 56
0
 public IEllipseEntity EllipseByOriginVectors(IPointEntity origin, IVectorEntity xAxisRadius, IVectorEntity yAxisRadius)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 57
0
 public IGeometryEntity[] Project(IPointEntity PointEntity, IVectorEntity dir)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 58
0
 public IHelixEntity HelixByAxis(IPointEntity axisPoint, IVectorEntity axisDirection, IPointEntity startPoint, double pitch, double angleTurns)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 59
0
        public IArcEntity ArcByCenterPointStartPointSweepAngle(IPointEntity centerPoint, IPointEntity startPoint, double sweepAngle, IVectorEntity normal)
        {
            DSGeometryApplication.Check();
            double radius     = startPoint.DistanceTo(centerPoint);
            double startAngle = 30;

            return(new ArcEntity(centerPoint, normal, radius, startAngle, sweepAngle));
        }
Ejemplo n.º 60
0
 public IPlaneEntity PlaneByOriginXAxisYAxis(IPointEntity origin, IVectorEntity xAxis, IVectorEntity yAxis) { throw new NotImplementedException(); }