Geometry
Coordinates in cadwork
To be able to determine the directions of the axes and the order of the x, y and z axes, the righthand rule is applied:
Spread the first three fingers of your right hand, as seen below. By virtue of the righthand rule, your thumb becomes the positive x axis, the index finger, which is at a right angle from the thumb, becomes the positive y axis and the middle finger becomes the z axis. The position of the middle finger is of decisive importance. It points in the positive z direction. No matter how you rotate your right hand, the positive direction of the z axis is determined by the righthand rule.
Base of cadwork elements
All basic elements in cadwork have an axis system. Except for the auxiliary element, room and surfaces, the elements are defined by an axis. The axis spans between point 1 and point 2.
The orientation of the axis is defined by the vectors x, y, z.
Vector Geometry
A vector indicates a quantity, such as velocity or force, that has direction and length.Vectors in 3D coordinate systems are represented with an ordered set of three realnumbers.
Two vectors are the same if they have the same magnitude and direction. This means that if we take a vector and translate it to a new position (without rotating it), then the vector we obtain at the end of this process is the same vector we had in the beginning.
Vector or point
A vector defines a direction and length. A point defines a location.
Cadwork Points and Vectors
graph TD;
point_3d>coordinatex;
point_3d>coordinatey;
point_3d>coordinatez;
graph TD;
point_3d>coordinate100;
point_3d>coordinate400;
point_3d>coordinate250;
graph TD;
point_3d>coordinate1.0;
point_3d>coordinate0.0;
point_3d>coordinate0.5;
A cadwork point_3d list can be accessed like a simple python list.
1 2 3 4 5 6 7 

The coordinates of a cadwork point_3d object can also be accessed by its .x, .y and .z attributes.
1 2 3 4 5 6 7 

point_3d Methods
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 

move a cadwork point
1 2 3 4 5 6 

cross product
1 2 3 4 5 6 7 

Angle Between Two 3D Vectors
1 2 3 4 5 6 
