本文整理汇总了C#中IPointEntity类的典型用法代码示例。如果您正苦于以下问题:C# IPointEntity类的具体用法?C# IPointEntity怎么用?C# IPointEntity使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IPointEntity类属于命名空间,在下文中一共展示了IPointEntity类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例2: BSplineSurfaceByControlVertices
public IBSplineSurfaceEntity BSplineSurfaceByControlVertices(IPointEntity[][] controlVertices, int uDegree, int vDegree)
{
DSGeometryApplication.Check();
IBSplineSurfaceEntity surface = new BSplineSurfaceEntity();
surface.UpdateByPoles(controlVertices, uDegree, vDegree);
return surface;
}
示例3: CoordinateEntity
public CoordinateEntity(IPointEntity origin, IVectorEntity xAxis, IVectorEntity yAxis, IVectorEntity zAxis)
{
this.Origin = origin;
this.XAxis = xAxis;
this.YAxis = yAxis;
this.ZAxis = zAxis;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例10: SphereEntity
public SphereEntity(IPointEntity centerPoint, double radius)
{
this.CenterPoint = centerPoint;
this.Radius = radius;
}
示例11: UpdateSphere
public void UpdateSphere(IPointEntity centerPoint, double radius)
{
this.CenterPoint = centerPoint;
this.Radius = radius;
}
示例12: Rotation
public ICoordinateSystemEntity Rotation(double rotationAngle, IVectorEntity axis, IPointEntity origin)
{
return new CoordinateEntity();
}
示例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;
}
示例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;
}
示例15: Scale2D
public void Scale2D(IPointEntity from, IPointEntity to)
{
throw new NotImplementedException();
}