public BezierPatchForeignVertex(ForeignShell parent, Point position, int index) : base(parent) { Debug.Assert(position != null); this.position = position; this.index = index; }
public BezierPatchForeignEdge(ForeignShell parent, ControlPoint[] points, int index) : base(parent) { Debug.Assert(points != null); NurbsData data = new NurbsData(4, false, false, new Knot[] { new Knot(0, 4), new Knot(1, 4) }); nurbsCurve = NurbsCurve.CreateFromControlPoints(data, points); this.index = index; }
public BezierPatchForeignFace(ForeignShell parent, ControlPoint[,] vertices) : base(parent) { Debug.Assert(vertices != null); this.vertices = vertices; NurbsData dataU = new NurbsData(4, false, false, new Knot[] { new Knot(0, 4), new Knot(1, 4) }); NurbsData dataV = new NurbsData(4, false, false, new Knot[] { new Knot(0, 4), new Knot(1, 4) }); surface = NurbsSurface.Create(dataU, dataV, vertices); }
public override bool Equals(ForeignShell other) { if (other == null) { return(false); } if (other == this) { return(true); } var otherShell = other as BezierPatchForeignShell; return(otherShell != null && otherShell.vertices == vertices); }
public BezierPatchForeignVertex(ForeignShell parent, Point position, int index) : base(parent) { Debug.Assert(position != null); this.position = position; this.index = index; }
public override bool Equals(ForeignShell other) { if (other == null) return false; if (other == this) return true; var otherShell = other as BezierPatchForeignShell; return otherShell != null && otherShell.vertices == vertices; }
public BezierPatchForeignFace(ForeignShell parent, ControlPoint[,] vertices) : base(parent) { Debug.Assert(vertices != null); this.vertices = vertices; NurbsData dataU = new NurbsData(4, false, false, new Knot[] { new Knot(0, 4), new Knot(1, 4) }); NurbsData dataV = new NurbsData(4, false, false, new Knot[] { new Knot(0, 4), new Knot(1, 4) }); surface = NurbsSurface.Create(dataU, dataV, vertices); }
public BezierPatchForeignEdge(ForeignShell parent, ControlPoint[] points, int index) : base(parent) { Debug.Assert(points != null); NurbsData data = new NurbsData(4, false, false, new Knot[] { new Knot(0, 4), new Knot(1, 4) }); nurbsCurve = NurbsCurve.CreateFromControlPoints(data, points); this.index = index; }