This shows you the differences between two versions of the page.

developer:scriptsamples:circletrimmer [2015/09/14] 127.0.0.1 external edit |
developer:scriptsamples:circletrimmer [2016/02/04] (current) sandy |
||
---|---|---|---|

Line 1: | Line 1: | ||

====== Trimming Curves with a Circle ====== | ====== Trimming Curves with a Circle ====== | ||

> **Developer:** [[developer:rhinoscript|RhinoScript]] | > **Developer:** [[developer:rhinoscript|RhinoScript]] | ||

- | > **Summary:** //How to trim a closed curve with a circle using [[developer:rhinoscript|RhinoScript]].// | + | > **Summary:** //How to trim a closed curve with a circle using [[developer:rhinoscript|RhinoScript]]// |

- | =====Question===== | + | =====Problem===== |

- | I have a closed spline that is intersected by a circle. I want to open the closed spline by trimming out the section crossed by the circle. I am trying to use RhinoScript's **TrimCurve** method, but I am not having much success. Any help would be appreciated. | + | I have a closed spline that is intersected by a circle. I want to open the closed spline by trimming out the section crossed by the circle. I am trying to use RhinoScript's **TrimCurve** method, but I am not having much success. Help! |

- | =====Answer===== | + | =====Solution===== |

- | With **TrimCurve**, if the input curve is closed, then the trimming interval should be decreasing. | + | With **TrimCurve**, if the input curve is closed, then the trimming interval should decrease. |

For example: | For example: |

developer/scriptsamples/circletrimmer.txt · Last modified: 2016/02/04 by sandy