SketchUp / api-issue-tracker

Public issue tracker for the SketchUp and LayOut's APIs
https://developer.sketchup.com/
39 stars 10 forks source link

Expose the Offset method within the SketchUp core #784

Open Whaat opened 2 years ago

Whaat commented 2 years ago

The API exposes push/pull, follow me, and other geometry manipulation features of SketchUp.

For parity and other use-cases, I would like an 'offset' method exposed that would allow the functionality of the offset tool to be duplicated by a Ruby tool. Creating basic offset logic is not too difficult but making it robust enough to handle self-intersection and edge-cases is where things become overwhelming.

There a plenty of use-cases for this feature but the one I am working on right now is a roof tool where the user can select a face and then the tool will automatically offset the face to form the roof 'overhang' prior to generating the sloping portion of the roof.

sketchup[bot] commented 2 years ago

Logged as: SKEXT-3421

DanRathbun commented 2 years ago

Reminder that we can also offset at least 2 edges as they give the offsetting plane.


For the Live C API, would this be (or also be) part of the SUGeometryInput interface and added to the model via SUEntitiesFill() ?