/// <summary> /// Create a custom voxel mesh. /// </summary> /// /// <param name="width"></param> /// <param name="height"></param> /// <param name="depth"></param> public SubMesh(IVoxelMesh parent, IDimensions3D dimensions) : base() { this._dimensions = dimensions.Copy(); this._parentMesh = parent; this._start = VoxelLocation.Zero; }
/// <summary> /// Keep a submesh of an existing mesh. /// </summary> /// <param name="parent"></param> /// <param name="start"></param> /// <param name="dimensions"></param> public SubMesh(IVoxelMesh parent, VoxelLocation start, IDimensions3D dimensions) : base() { this._dimensions = dimensions.Copy(); this._parentMesh = parent; this._start = new VoxelLocation(start); }