예제 #1
0
        private void OnGeoObjectStructureChanged(object sender, EventArgs eventArgs)
        {
            var go = (GeometricObject)sender;

            PositionsObjectSpace = meshBuilder.GetPositions();
            Indecies             = meshBuilder.GetIndecies();
            BuildWorldSpaceMash(go.Orientation, go.Center);
        }
예제 #2
0
        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;
        }