# Variable Offset Surface in Rhinocommon?

**URL:** <https://discourse.mcneel.com/t/variable-offset-surface-in-rhinocommon/26194>\
**Category:** Rhino Developer\
**Created:** [October 29, 2015, 3:34pm UTC](https://discourse.mcneel.com/t/variable-offset-surface-in-rhinocommon/26194 "2015-10-29T15:34:39Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![samlochner](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/samlochner/32/738693_2.png) [@samlochner](https://discourse.mcneel.com/u/samlochner)\
**Post date:** [October 29, 2015, 3:34pm UTC](https://discourse.mcneel.com/t/variable-offset-surface-in-rhinocommon/26194/1 "2015-10-29T15:34:39Z")

</div>

Is there a way to do a variable offset surface in Rhinocommon?

If not, I might try to script the rhino command. Trouble though is I’m not sure how to move the handles. Any thoughts?

Thanks,  
Sam

---

<div class="post-metadata">

**Author:** ![dale](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dale/32/772741_2.png) [@dale](https://discourse.mcneel.com/u/dale)\
**Post date:** [November 2, 2015, 3:36pm UTC](https://discourse.mcneel.com/t/variable-offset-surface-in-rhinocommon/26194/2 "2015-11-02T15:36:18Z")

</div>

> [@samlochner](#):
>
> Is there a way to do a variable offset surface in Rhinocommon?

Sorry, no. Neither the C++ SDK nor RhinoCommon have support for this.

Perhaps you can describe what you are trying to do. Posting geometric examples is alway helpful.

@chuck, any hope for something in the SDK in the future?

---

<div class="post-metadata">

**Author:** ![chuck](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/chuck/32/512984_2.png) [@chuck](https://discourse.mcneel.com/u/chuck)\
**Post date:** [November 2, 2015, 3:46pm UTC](https://discourse.mcneel.com/t/variable-offset-surface-in-rhinocommon/26194/3 "2015-11-02T15:46:56Z")

</div>

It’s not on my list anywhere, but I suppose it’s possible.

---

<div class="post-metadata">

**Author:** ![samlochner](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/samlochner/32/738693_2.png) [@samlochner](https://discourse.mcneel.com/u/samlochner)\
**Post date:** [November 3, 2015, 4:50pm UTC](https://discourse.mcneel.com/t/variable-offset-surface-in-rhinocommon/26194/4 "2015-11-03T16:50:53Z")

</div>

OK, attached is a trimmed surface representing the bottom of a shoe last. I would like to offset it downwards, but more at the back than at the front (has to do with more shoe material at the back than the front). Perhaps I will have to write a function that offsets the control points downwards but as a function of distance from the front or back. Any suggestions?

Thanks,  
Sam

[SurfaceToOffset.3dm](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/5/2/52e4a2ecbf12d96f6dcfdc64d92e172c95a51cfe.3dm) (13.2 MB)

---

<div class="post-metadata">

**Author:** ![dale](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dale/32/772741_2.png) [@dale](https://discourse.mcneel.com/u/dale)\
**Post date:** [November 3, 2015, 6:55pm UTC](https://discourse.mcneel.com/t/variable-offset-surface-in-rhinocommon/26194/5 "2015-11-03T18:55:24Z")

</div>

That might work in the case of this surface. But if the VariableOffsetSrf command is what you’d normally use, then the SDK should provide similar functionality.

[http://mcneel.myjetbrains.com/youtrack/issue/RH-31830](http://mcneel.myjetbrains.com/youtrack/issue/RH-31830)

---

<div class="post-metadata">

**Author:** ![samlochner](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/samlochner/32/738693_2.png) [@samlochner](https://discourse.mcneel.com/u/samlochner)\
**Post date:** [November 3, 2015, 8:40pm UTC](https://discourse.mcneel.com/t/variable-offset-surface-in-rhinocommon/26194/6 "2015-11-03T20:40:46Z")

</div>

Hi Dale,

I think I see what you are saying: offseting control points doesn’t gaurantee the surface will be offset by that amount, but my surface is close to flat so perhaps it would be OK. Alternatively I could do some kind of interative solution. Or I could just wait for it to be added to Rhinocommon. I like the last option best :-), any thoughts on how long it might take?

Thanks,  
Sam

---

<div class="post-metadata">

**Author:** ![chuck](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/chuck/32/512984_2.png) [@chuck](https://discourse.mcneel.com/u/chuck)\
**Post date:** [November 3, 2015, 9:31pm UTC](https://discourse.mcneel.com/t/variable-offset-surface-in-rhinocommon/26194/7 "2015-11-03T21:31:06Z")

</div>

Hi Sam,

This is on my list. I’m not really in a position to look at how difficult it will be right now. Give me a few days to finish up something then I’ll have a better idea.

Chuck

---

<div class="post-metadata">

**Author:** ![samlochner](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/samlochner/32/738693_2.png) [@samlochner](https://discourse.mcneel.com/u/samlochner)\
**Post date:** [November 3, 2015, 9:55pm UTC](https://discourse.mcneel.com/t/variable-offset-surface-in-rhinocommon/26194/8 "2015-11-03T21:55:11Z")

</div>

Thanks!

Sam

---

<div class="post-metadata">

**Author:** ![chuck](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/chuck/32/512984_2.png) [@chuck](https://discourse.mcneel.com/u/chuck)\
**Post date:** [November 4, 2015, 8:45pm UTC](https://discourse.mcneel.com/t/variable-offset-surface-in-rhinocommon/26194/9 "2015-11-04T20:45:22Z")

</div>

This doesn’t look very easy. There is a lot in the command interface that will be hard to get into a relatively simple function. If all you need is something that takes a surface and a list of (u, v, distance), it might not be too bad, and I can probably do something in the next month or so, but there’s a good chance it won’t give what you are expecting. There are quite a few parameters in the low level code that I would have to fill in by guessing.

---

<div class="post-metadata">

**Author:** ![dale](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dale/32/772741_2.png) [@dale](https://discourse.mcneel.com/u/dale)\
**Post date:** [November 4, 2015, 8:53pm UTC](https://discourse.mcneel.com/t/variable-offset-surface-in-rhinocommon/26194/10 "2015-11-04T20:53:46Z")

</div>

> [@samlochner](#):
>
> any thoughts on how long it might take?

The earliest anything would be available in V6…

---

<div class="post-metadata">

**Author:** ![samlochner](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/samlochner/32/738693_2.png) [@samlochner](https://discourse.mcneel.com/u/samlochner)\
**Post date:** [November 5, 2015, 6:12pm UTC](https://discourse.mcneel.com/t/variable-offset-surface-in-rhinocommon/26194/11 "2015-11-05T18:12:46Z")

</div>

I think a giving a list of distances at particular u, v would be OK. You are going to write a rhinocommon function for this? But it will be ready in a month or V6?

Thanks,  
Sam

---

<div class="post-metadata">

**Author:** ![chuck](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/chuck/32/512984_2.png) [@chuck](https://discourse.mcneel.com/u/chuck)\
**Post date:** [November 5, 2015, 10:04pm UTC](https://discourse.mcneel.com/t/variable-offset-surface-in-rhinocommon/26194/12 "2015-11-05T22:04:13Z")

</div>

Hi Sam,

Sorry for the confusion. I was talking about when I can get the code written. I don’t know what the time frames are for releasing different versions to the public. I’m working exclusively in v6 now, and I could have it done there in a month.

Chuck

---

<div class="post-metadata">

**Author:** ![samlochner](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/samlochner/32/738693_2.png) [@samlochner](https://discourse.mcneel.com/u/samlochner)\
**Post date:** [November 6, 2015, 1:48pm UTC](https://discourse.mcneel.com/t/variable-offset-surface-in-rhinocommon/26194/13 "2015-11-06T13:48:16Z")

</div>

OK, thanks for clarifying.

Sam
