M
M
mississippi2017-11-16 13:38:40
Graphic arts
mississippi, 2017-11-16 13:38:40

What programming tools are best used to build a drawing according to the given parameters?

For example: you need to make such a program: a certain number of parameters of what needs to be drawn are input and an image of the figure is displayed according to these parameters.
For example, you need to draw this:
5a0d65cb501ac968377498.png
I don't want to do something like:
DrowLine...
DrowLine...
.
..
DrowLine..
Need a better tool, tell me some library for some programming language, or something else.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TomasHuk, 2017-11-16
@TomasHuk

Any program consists of a set of instructions.
Yours will consist of a drawline anyway.
And where these lines will be located, you will indicate in your algorithm.
For example, a hypothetical draw_rack(2,4) function would draw 2 horizontal lines and 4 vertical lines, as shown.
What can I recommend:
- a bunch of python + dxfwrite;
- autolisp in AutoCAD.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question