• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IPointEntity类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IPointEntity的典型用法代码示例。如果您正苦于以下问题:C# IPointEntity类的具体用法?C# IPointEntity怎么用?C# IPointEntity使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IPointEntity类属于命名空间,在下文中一共展示了IPointEntity类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: BSplineSurfaceByPoints

 public IBSplineSurfaceEntity BSplineSurfaceByPoints(IPointEntity[][] points, int uDegree, int vDegree)
 {
     DSGeometryApplication.Check();
     IBSplineSurfaceEntity surface = new BSplineSurfaceEntity();
     surface.UpdateByPoints(points, uDegree, vDegree);
     return surface;
 }
开发者ID:samuto,项目名称:designscript,代码行数:7,代码来源:GeometryFactory.cs


示例2: BSplineSurfaceByControlVertices

 public IBSplineSurfaceEntity BSplineSurfaceByControlVertices(IPointEntity[][] controlVertices, int uDegree, int vDegree)
 {
     DSGeometryApplication.Check();
     IBSplineSurfaceEntity surface = new BSplineSurfaceEntity();
     surface.UpdateByPoles(controlVertices, uDegree, vDegree);
     return surface;
 }
开发者ID:samuto,项目名称:designscript,代码行数:7,代码来源:GeometryFactory.cs


示例3: CoordinateEntity

 public CoordinateEntity(IPointEntity origin, IVectorEntity xAxis, IVectorEntity yAxis, IVectorEntity zAxis)
 {
     this.Origin = origin;
     this.XAxis = xAxis;
     this.YAxis = yAxis;
     this.ZAxis = zAxis;
 }
开发者ID:RobertiF,项目名称:Dynamo,代码行数:7,代码来源:CoordinateHost.cs


示例4: ArcByCenterPointStartPointSweepAngle

 public IArcEntity ArcByCenterPointStartPointSweepAngle(IPointEntity centerPoint, IPointEntity startPoint, double sweepAngle, IVector normal)
 {
     DSGeometryApplication.Check();
     double radius = startPoint.DistanceTo(centerPoint);
     double startAngle = 30;
     return new ArcEntity(centerPoint, normal, radius, startAngle, sweepAngle);
 }
开发者ID:samuto,项目名称:designscript,代码行数:7,代码来源:GeometryFactory.cs


示例5: ConeByPointsRadii

 public IConeEntity ConeByPointsRadii(IPointEntity startPoint, IPointEntity endPoint, double startRadius, double endRadius)
 {
     DSGeometryApplication.Check();
     ConeEntity cone = new ConeEntity();
     cone.UpdateCone(startPoint, endPoint, startRadius, endRadius);
     return cone;
 }
开发者ID:RobertiF,项目名称:Dynamo,代码行数:7,代码来源:GeometryFactory.cs


示例6: UpdateCone

 public void UpdateCone(IPointEntity startPoint, IPointEntity endPoint, double startRadius, double endRadius)
 {
     this.StartPoint = startPoint;
     this.EndPoint = endPoint;
     this.StartRadius = startRadius;
     this.EndRadius = endRadius; 
 }
开发者ID:RobertiF,项目名称:Dynamo,代码行数:7,代码来源:ConeHost.cs


示例7: ArcEntity

 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;
 }
开发者ID:RobertiF,项目名称:Dynamo,代码行数:8,代码来源:ArcHost.cs


示例8: NurbsSurfaceEntity

 public NurbsSurfaceEntity(IPointEntity[][] pts, int degreeU, int degreeV, int p)
 {
     if (p == 0)
         this.Points = pts;
     else
         this.Poles = pts;
     this.DegreeU = degreeU;
     this.DegreeV = degreeV;
 }
开发者ID:RobertiF,项目名称:Dynamo,代码行数:9,代码来源:NurbsSurfaceHost.cs


示例9: ArcByCenterPointStartPointSweepPoint

 public IArcEntity ArcByCenterPointStartPointSweepPoint(IPointEntity centerPoint, IPointEntity startPoint, IPointEntity sweepPoint)
 {
     DSGeometryApplication.Check();
     Vector start_center = Vector.ByCoordinates(startPoint.X - centerPoint.X, startPoint.Y - centerPoint.Y, startPoint.Z - centerPoint.Z);
     Vector sweep_center = Vector.ByCoordinates(sweepPoint.X - centerPoint.X, sweepPoint.Y - centerPoint.Y, sweepPoint.Z - centerPoint.Z);
     Vector normal = start_center.Cross(sweep_center);
     double radius = start_center.GetLength();
     Vector Axis = Vector.ByCoordinates(1, 0, 0);
     double startAngle = Math.Acos(start_center.Dot(Axis) / (start_center.GetLength() * Axis.GetLength()));
     double sweepAngle = Math.Acos(start_center.Dot(sweep_center) / (start_center.GetLength() * sweep_center.GetLength()));
     return new ArcEntity(centerPoint, normal.ToIVector(), radius, startAngle, sweepAngle);
 }
开发者ID:samuto,项目名称:designscript,代码行数:12,代码来源:GeometryFactory.cs


示例10: SphereEntity

 public SphereEntity(IPointEntity centerPoint, double radius)
 {
     this.CenterPoint = centerPoint;
     this.Radius = radius;
 }
开发者ID:RobertiF,项目名称:Dynamo,代码行数:5,代码来源:SphereHost.cs


示例11: UpdateSphere

 public void UpdateSphere(IPointEntity centerPoint, double radius)
 {
     this.CenterPoint = centerPoint;
     this.Radius = radius;
 }
开发者ID:RobertiF,项目名称:Dynamo,代码行数:5,代码来源:SphereHost.cs


示例12: Rotation

 public ICoordinateSystemEntity Rotation(double rotationAngle, IVectorEntity axis, IPointEntity origin)
 {
     return new CoordinateEntity();
 }
开发者ID:RobertiF,项目名称:Dynamo,代码行数:4,代码来源:CoordinateHost.cs


示例13: Set

 public void Set(IPointEntity origin, IVectorEntity xAxis, IVectorEntity yAxis, IVectorEntity zAxis)
 {
     this.Origin = origin;
     this.XAxis = xAxis;
     this.YAxis = yAxis;
     this.ZAxis = zAxis;
 }
开发者ID:RobertiF,项目名称:Dynamo,代码行数:7,代码来源:CoordinateHost.cs


示例14: PointsAtEqualArcLengthCore

        internal IPointEntity[] PointsAtEqualArcLengthCore(int numberOfPoints)
        {
            if (numberOfPoints < 1)
                throw new System.ArgumentException(string.Format(Properties.Resources.LessThan, "number of points", "one"), "numberOfPoints");

            double length = Length;
            if (numberOfPoints == 1 || length.EqualsTo(0.0))
                return new[] { StartPoint.PointEntity.Clone() as IPointEntity };
            bool isClosed = IsClosed;
            if (numberOfPoints == 2 && !isClosed)
                return new[] { StartPoint.PointEntity.Clone() as IPointEntity, EndPoint.PointEntity.Clone() as IPointEntity };

            double steps = (isClosed ? length / numberOfPoints : length / (numberOfPoints - 1));
            IPointEntity[] pts = new IPointEntity[numberOfPoints];

            for (int i = 0; i < numberOfPoints; ++i)
            {
                double dist = i * steps;
                pts[i] = CurveEntity.PointAtDistance(dist);
            }
            return pts;
        }
开发者ID:samuto,项目名称:designscript,代码行数:22,代码来源:Curve.cs


示例15: Scale2D

 public void Scale2D(IPointEntity from, IPointEntity to)
 {
     throw new NotImplementedException();
 }
开发者ID:RobertiF,项目名称:Dynamo,代码行数:4,代码来源:CoordinateHost.cs


示例16: Project

 public IGeometryEntity[] Project(IPointEntity PointEntity, IVectorEntity dir)
 {
     throw new NotImplementedException();
 }
开发者ID:RobertiF,项目名称:Dynamo,代码行数:4,代码来源:SolidHost.cs


示例17: UVParameterAtPoint

 public IUVEntity UVParameterAtPoint(IPointEntity point)
 {
     throw new NotImplementedException();
 }
开发者ID:RobertiF,项目名称:Dynamo,代码行数:4,代码来源:PolygonHost.cs


示例18: UpdateVertices

 public void UpdateVertices(IPointEntity[] positions)
 {
     this.Positions = positions;
 }
开发者ID:samuto,项目名称:designscript,代码行数:4,代码来源:PolygonHost.cs


示例19: ConeByPointsRadius

 public virtual IConeEntity ConeByPointsRadius(IPointEntity startPoint, IPointEntity endPoint, double startRadius, double endRadius)
 {
     throw new NotImplementedException("Factory method ConeByPointsRadius not implemented");
 }
开发者ID:samuto,项目名称:designscript,代码行数:4,代码来源:GeometryFactory.cs


示例20: PolygonEntity

 internal PolygonEntity()
 {
     Positions = new IPointEntity[2] { new PointEntity(), new PointEntity(1,1,1) };
 }
开发者ID:samuto,项目名称:designscript,代码行数:4,代码来源:PolygonHost.cs



注:本文中的IPointEntity类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IPointList类代码示例发布时间:2022-05-24
下一篇:
C# IPoint3D类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap