The callback that is called when the drawing tool is cancelled.
The callback that is called when the drawing tool is updated.
The points data of the drawing tool.
Properties for the grid restriction
The data of the points. The points are defined as an array of arrays, where each array contains the x, y and z coordinates of the point.
The activation key of the restriction. If the key is not provided, no key is assigned. If the key is provided, the restriction is only active when the key is pressed.
If the restriction should be enabled by default.
If the enabling or disabling of the restriction is allowed to the end user. If it is not editable, the default value for enabling or disabling the restriction is used.
Priority of the restriction. The higher the priority, the sooner the restriction is applied. If the priority is the same, the result that is closer to the original point is chosen.
Create a new instance of DrawingTools.
The viewport to which the DrawingTools should be attached.
The DrawingTools instance.
The callbacks of the drawing tool.
Here you can define the callbacks that are used when interacting with the drawing tool.