/// <summary>
        /// Initializes a new specific Sculptor instance.
        /// </summary>
        /// <returns>A PolygonSculptor object.</returns>
        protected override Sculptor CreateSculptor()
        {
            var sculptor = new PolygonSculptor();

            sculptor.Initialize(SideCount, InitialAngle, RoundingRate);
            return(sculptor);
        }
Beispiel #2
0
 /// <summary>
 /// Called by UIElement3D.InvalidateModel() to update the 3D model.
 /// </summary>
 protected override void OnUpdateModel()
 {
     _sculptor.Initialize(SideCount, InitialAngle, RoundingRate);
     _sculptor.BuildMesh();
     Geometry = _sculptor.Mesh;
     base.OnUpdateModel();
 }