Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Please clarify Sketch.offset documentation

1 REPLY 1
Reply
Message 1 of 2
gscotti
220 Views, 1 Reply

Please clarify Sketch.offset documentation

I'm really confused about what directionPoint means. Does it mean if it is inside the loop the offset is inwards aod if it is outside it is outwards? In this case, what does it mean to have a negative offset value?

 

 

 

1 REPLY 1
Message 2 of 2
marshaltu
in reply to: gscotti

Hello,

 

"directionPoint" was designed for specifying the direction of offset. Sometimes it is difficult to define the offset direction if the curves are not a loop. For example: for a single line, api clients would have no idea which direction offset line will go with if we only give positive/negative offset value. In UI side, the offset preview can give the hint of direction when users input positve/nagetive offset value.

 

For general purpose, Sketch.offset API would depend on "directionPoint" to decide offset direction, accept only positive offset value and ignore negative one users give.

 

Thanks,

Marshal



Marshal Tu
Fusion 360 Developer
Autodesk, Inc.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report