CutCorners while setting penalty at runtime

In the documentation its written CutCorner is used for obstacles. Is it work for penalties?
I need to cut corners while setting penalties using GraphUpdateObject at runtime. Please help.

Following up on our email conversation.

Yeah, it is not particularly well documented (just improved it in my dev version), but when you set the shape field, you will also need to set the bounds to the bounds which enclose the shape because the bounds will be used to trim down the region which is updated (for performance, otherwise the graph update would be very slow). Also the points will need to be specified in clockwise order.

Works like a charm. Thanks again.

1 Like