# closed curve offset on surface

**URL:** https://discourse.vtk.org/t/closed-curve-offset-on-surface/12532
**Category:** Support
**Created:** [October 25, 2023, 6:50am UTC](https://discourse.vtk.org/t/closed-curve-offset-on-surface/12532 "2023-10-25T06:50:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![czc98](https://discourse.vtk.org/user_avatar/discourse.vtk.org/czc98/32/7851_2.png) [@czc98](https://discourse.vtk.org/u/czc98)
#### Post date: [October 25, 2023, 6:50am UTC](https://discourse.vtk.org/t/closed-curve-offset-on-surface/12532/1 "2023-10-25T06:50:26Z")

</div>

![image](https://discourse.vtk.org/uploads/default/original/2X/d/dc32cfae7f9a174ee0324b060b11ca2cf91e5ba6.png)  
I want to offset the closed curve on the surface by the specified distance as shown in the figure.  
One of my ideas is to use contour lines（using vtkContourFilter）to extract the offset curve, But one of the main questions is how do I compute a scalar for each point on the surface.  
Or is there another way to implement curve offset?
