Article | 60001574 |
Type | HowTo |
Product | Engine |
Version | 6 |
Date Added | 12/12/2011 |
Submitted by | Tien Huat Lee |
Keywords |
Matrix mat = new Matrix(); mat.ScaleMatrix(0.01, 0.01, 0.01); // Scale it in X, Y and Z by 0.01 foreach (vdFigure item in DOC.Model.Entities) { item.Transformby(mat); item.Update(); item.Invalidate(); }Also when you do the scaling you can alter the equality to a smaller value and re-set it back to original value, like :
Double OldEqual = Globals.Default3DMatrixEquality; Globals.Default3DMatrixEquality = 0.000001; Matrix mat = new Matrix(); mat.ScaleMatrix(0.01, 0.01, 1); foreach (vdFigure item in DOC.Model.Entities) { item.Transformby(mat); item.Update(); item.Invalidate(); } Globals.Default3DMatrixEquality = OldEqual ;