예제 #1
0
 /// <summary>
 /// Limits an arc by a specified list of entities.
 /// </summary>
 /// <param name="limitingEntities">The entities with which to perform the limiting operation.</param>
 /// <param name="limitingMode">The mode in which to carry out the operation.</param>
 /// <param name="keepOption">Whether to keep one or both sides of the limit.</param>
 /// <param name="trimOption">Whether to trim one or all of the entities.</param>
 /// <param name="finishOperation">If true, turns edit selection off.</param>
 /// <returns>A list of limited entities.</returns>
 public List <PSEntity> LimitToEntities(
     List <PSEntity> limitingEntities,
     LimitingModes limitingMode     = LimitingModes.LimitMode,
     LimitingKeepOptions keepOption = LimitingKeepOptions.KeepOne,
     LimitingTrimOptions trimOption = LimitingTrimOptions.LimitOne,
     bool finishOperation           = true)
 {
     return(PSEntityLimiter.LimitEntity(this, limitingEntities, limitingMode, keepOption, trimOption, finishOperation));
 }
예제 #2
0
 /// <summary>
 /// Limits using the dynamic cutter option.
 /// </summary>
 /// <param name="keepOption">Whether to keep one or both sides of the limit.</param>
 /// <returns>Limited entity</returns>
 /// <remarks>To be used with PSEntityLimiter.NextSolution</remarks>
 public PSEntity LimitUsingDynamicCutter(LimitingKeepOptions keepOption = LimitingKeepOptions.KeepOne)
 {
     return(PSEntityLimiter.LimitEntityUsingDynamicCutter(this, keepOption));
 }