/// <summary> /// Adds a refiner which can normalise meshes for easier feature extraction. /// This will have effect on the next provided directories. /// It will not try to recover the extra files from previous directories. /// </summary> /// <param name="refiner">The refiner which can normalise a shape in any way.</param> public void AddRefiner(IRefiner <IMesh> refiner) { if (refiner != null && !refiners.Contains(refiner)) { refiners.Add(refiner); } }
/// <summary> /// Removes the specified refiner from the refine manager. /// </summary> /// <param name="refiner">The refiner that should no longer be present.</param> /// <returns><see langword="true"/> if the refiner was successfully removed /// from the current refiners.</returns> public bool RemoveRefiner(IRefiner <IMesh> refiner) { return(refiners.Remove(refiner)); }