The program should draw objects straight, curves and [url removed, login to view] is necessary that the product pictured a closed polyline, and that would include arcs and straight lines (necessarily vector graphics). Next, the program should consider the surface area of closed shapes and lengths unclosed polylines. The program itself should decide where the straight section where the polyline and curved. In general, the principle of operation should be similar to CAD programs, such as AutoCAD. Here\\\\\\\'s a prototype to be modernezirovat [url removed, login to view] of reference:All the tools are in the pictureExplanation: Direct - Draws a straight line at the beginning and end koardinatam Polyline - Draws a polyline as a direct and part of the arc (necessary when drawing provide switching between drawing (segment, arc)) Rectangle - Draw a rectangle. The circle - draws a circle. Doug - draws a portion of the arc on the two points and radius. Ellipse - Draws ellipse. Move - moves ready embedded objects such as washing, Var. on top., on top of a hot. Rotate - povarachivaetsya ready embedded objects such as washing, Var. on top., on top of a hot. Insert the unit - inserts the finished product unit (must provide several options) Insert cutout Var. on top. - Inserts cutout Var. on top. (You need to provide for a request for the introduction of its size) Insert a hot surface - inserts a hot surface (request must be provided to the introduction of its size) Save - saves the drawing in JPG format Remove (delete) - removes the finished object is inserted or erases part of the segment, polyline arc or circle (it is essential that this operation would make changes in the matrix of variables. Size Line - draws a dimension line with the size (the size of an orthogonal). Size Parallel - draws the dimension line parallel to this. Size range - dimensional line drawing showing the radius. The zoom - zoom in or out chertuzh (to 10 scale factors). Pairing radius - rounds the two segments of the radius (request must be provided to the introduction of the radius). Pairing facet - does chamfer (necessary to provide prompted for the size of the bevel on the X and Y).The lower part of the window should show the array variables (in giving them new meanings in hand they should correspond to the array).Calculate the cost - calculates the price of the product (for a smaller download site can be done on the server chereh PHP)All drawing is done in [url removed, login to view] all koardinatnoe field is not infinite and has a predetermined size (the size of the product) in [url removed, login to view] to sites polyline should be through koardinaty (required for editing shapes).The area is defined as the product, in the beginning we imeeoblast area of a rectangle describing the product in mm. Then gradually we compute the area of figures and subtract them from the total. In the end, we get the exact area of the product (see Figure 2)
Priority is given to the Russian language.