示例#1
0
 public CoordinateEntity(IPointEntity origin, IVectorEntity xAxis, IVectorEntity yAxis, IVectorEntity zAxis)
 {
     this.Origin = origin;
     this.XAxis = xAxis;
     this.YAxis = yAxis;
     this.ZAxis = zAxis;
 }
示例#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;
 }
示例#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);
 }
示例#4
0
        public IPlaneEntity PlaneByOriginNormal(IPointEntity origin, IVectorEntity normal)
        {
            DSGeometryApplication.Check();
            IPlaneEntity plane = new PlaneEntity(origin, normal);

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