private void OnGeoObjectStructureChanged(object sender, EventArgs eventArgs) { var go = (GeometricObject)sender; PositionsObjectSpace = meshBuilder.GetPositions(); Indecies = meshBuilder.GetIndecies(); BuildWorldSpaceMash(go.Orientation, go.Center); }
public Mesh3D(IGeometricObject geoObject) { this.geoObject = geoObject; meshBuilder = geoObject.MeshBuilder; PositionsObjectSpace = meshBuilder.GetPositions(); Indecies = meshBuilder.GetIndecies(); BuildWorldSpaceMash(geoObject.Orientation, geoObject.Center); geoObject.SizeChanged += OnGeoObjectSizeChanged; geoObject.StructureChanged += OnGeoObjectStructureChanged; geoObject.PositionChanged += OnGeoObjectOrientationOrPositionChanged; geoObject.OrientationChanged += OnGeoObjectOrientationOrPositionChanged; }