Offset

destination after Beta: Modifier Change

https://user-images.githubusercontent.com/14288520/198389030-a350590c-5bc6-4d62-97f4-168089f275d7.png

Functionality

Make offset for polygons with bevel in corners. Output inner and outer polygons separately.

https://user-images.githubusercontent.com/14288520/198391035-85e9ac62-fe9f-4c32-8ac6-9061824d1dd2.png
  • Generator-> Box

Inputs

This node has the following inputs:

  • Vers - vertices of objects

  • Pols - polygons of objects

  • offset - offset values. Vectorized for every polygon as [[f,f,f,f,f]]

  • nsides - number of rounded sides

  • radius - bevel radius. Vectorized for every polygon as [[f,f,f,f,f]]

https://user-images.githubusercontent.com/14288520/198395930-ec31a765-51b3-4cc9-9198-cd96099d930c.png

Parameters

All parameters can be given by the node or an external input. offset and radius are vectorized and they will accept single or multiple values.

Param

Type

Default

Description

offset

Float

0.04

offset values.

nsides

Integer

1

number of rounded sides.

radius

Float

0.04

bevel radius.

Outputs

This node has the following outputs:

  • Vers

  • Edgs

  • OutPols - get polygons that lay in outer polygon’s line.

  • InPols - get polygons that lay in inner polygon’s line.

https://user-images.githubusercontent.com/14288520/198396663-60cd7f42-e708-4042-aa9b-183409fa2676.png

See also

Examples of usage

Offset and radius are defined by distance between point and polygon’s center, divided by some number:

https://user-images.githubusercontent.com/14288520/198399486-6c35dc6b-8cd4-4673-8594-84e00a9dfb3d.png https://user-images.githubusercontent.com/14288520/198399530-ed4fa6db-c6c2-4aac-91fc-5ef6f723803a.gif

Parameters’ cases, that make different polygons (decomposer list node used to separate):

https://user-images.githubusercontent.com/14288520/198401754-ec11ec2a-2d9d-4298-84c6-4a1f368fddca.png

Upper image can be defined by one offset and list (range) of numbers, plugged to offset/radius, which are vectorised:

https://user-images.githubusercontent.com/14288520/198402357-4ed1ba2d-d21a-487f-acd8-fc0a5045602b.png