public override void AppendVertex(Vector3d v) { base.AppendVertex(v); // map v to local coords LocalVertexRef r = new LocalVertexRef(); r.localPos = SceneTransforms.SceneToObject(Target, v); SurfacePoints.Add(r); if (Curve.VertexCount != SurfacePoints.Count) { throw new Exception("SurfaceCurvePreview: counts are out of sync!!"); } }
protected override void update_vertices(FScene s) { //if (Target.Timestamp == target_timestamp) // return; target_timestamp = Target.Timestamp; for (int i = 0; i < VertexCount; ++i) { LocalVertexRef r = SurfacePoints[i]; Vector3d vScene = SceneTransforms.ObjectToScene(Target, r.localPos); this[i] = vScene; } }
protected override void update_vertices(FScene s) { // [RMS] this was commented out...doesn't work? something? //if (Target.Timestamp == target_timestamp) // return; //target_timestamp = Target.Timestamp; for (int i = 0; i < VertexCount; ++i) { LocalVertexRef r = SurfacePoints[i]; Vector3d vScene = SceneTransforms.ObjectToSceneP(Target, r.localPos); this[i] = vScene; } }