Stroke a shape without making it bigger (AI or CorelDraw) [closed] - vector-graphics

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
Is there a way in Illustrator or in CorelDraw to stroke multiple shapes and keep the current distance between them? Or to stroke them without making them bigger?
I have a map with a lot of shapes and I have to stroke them all, but since the stroking is 50:50 and the shapes are very close to each other I will have to reposition all of them (and this means repostioning of more than 150 shapes, I do not know the exact count; the trickiest part is that since they represent a map they have so many edges that have to fit -repositioning them one by one will be a nightmare).

If your shapes are closed paths, you can align a stroke to the inside. More information on the adobe help page.

CorelDraw script:
Sub BoxInset()
Optimization = True
Set d = ActiveDocument
d.BeginCommandGroup "Box Inset"
For Each sl In ActiveSelection.Shapes
With sl
ow# = .Outline.Width
.GetSize x#, y#
.SetSize x - ow, y - ow
.Move ow / 2, -ow / 2
End With
Next
d.EndCommandGroup: Optimization = False: ActiveWindow.Refresh
End Sub

Related

How to graph an equation in the form z=x*y (programme needed) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
i would like to graph this kind of equation, z=x*y. I would like to set intervals like -n< x <-n and so on, to see how z varies in function of x and y at the same time. I also need to check the value of z at given x and y and see where z is at its maximum, for example. Thanks and have all a nice day!
Edit: the equation i am trying to study is z=x * (164+0.25y)
where 0 < x < 2.5 and 0 < x < 700.
P.S. I don't understand the downvotes, I kindly asked for a question in a polite way, providing as many details as I could.
This question may be a little outside of the scope of this site, but in regards to a graphing program:
One of the easiest ways to determine things about graphs is to use Wolfram Alpha a computational knowledge engine. A quick tour on the site and just trying a few things out should get you to where you want to go pretty quickly.
Since you appear new to this site, check out some of the Stack Overflow Basics and be sure to up-vote any help you get or questions you may find helpful.

Constructing a transfer function [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
How would I go about creating the below transfer function?
It would take two parameters:
position of bulge in range (-1.0, +1.0)
sharpness of bump
That picture only demonstrates movement in the first parameter.
I can think of a few possible approaches:
figure out a formula
Bezier curves?
start with a few points and do some kind of chain-links type physics dynamical simulation, where each link exerts a force of its neighbours, and the end links are held low, a particular link is held high
something like the above but starting out with a crude shape and filtering out high frequencies
However I can't see any simple way to set out on any of the above approaches.
Can anyone see a clean way to crack it?
Looks like a normal distribution with variable skew to me. I would look for something like that before I'd go for Bezier curves.

How to Calculate Circumference of Pipe with Specified Pitch [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
How to Calculate Circumference [Perimeter] of a Pipe [Cylinder shape] with Specified Pitch?
Actually I want to find the length of thread to wind a pipe.
Is there any formula or formula name I can refer?
What you are looking for is the perimeter of an ellipse which is rather an ugly thing (see: http://www.mathsisfun.com/geometry/ellipse-perimeter.html). Your minor axis is the diameter of the pipe. The major axis is the hypotenuse of the right triangle formed from 1/2 of your pitch.

R - plot human body in 2d [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I was wondering if there is a package to plot a 2D representation of the outline of a human body? Being in 2D, plotting either the front/back/side at any one time would presumably be the easiest way to accomplish this. The output would be something similar to this (though this is not the best use of such a diagram):
Source: http://emj.bmj.com/content/20/5/434.full
Ideally, plotting a subset of data as is done for the world with map(regions="Australia") would be possible in the form body.map(regions="left.hand"). In that respect, would it be appropriate to base such a model on the maps package?
I just had a look on clker.com for vector body graphics, and if you search for 'body' you see a lot of possible SVG files you could read in and plot.
Then I spotted this one:
http://www.clker.com/clipart-29915.html
which also links to a lot of 'Derived cliparts' showing similar bodies with other parts outlines. It only seems to be the upper torso, but its a nicely-layered SVG file where all the bits could be drawable individually.
There's also plenty of outline body figures (including, I just found, the male figure that went on the Voyager or Pioneer space probe plaques!) and skeletons, including some very well labelled skeletons impressed.
Organising all this into some kind of "body.map" function should be possible - read in from SVG file, select components, plot - but requires some careful thinking and more specification according to requirements.

What math field can deduce equations for a hand-drawn shape? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
Suppose I have an Arabic character hand-drawn in Thuluth font, as in:
http://arabicletters.info/wp-content/uploads/1.jpg
I was thinking of a way I can recreate the same shape but at a much greater height, whilst leaving the other characteristics intact (stroke width, thickness, the relation of where the curving starts to happen to the height) which then got me curious about a way of finding its mathematical representation and play with it until I can get what I want or any other shape for that matter. Is there a math sub-specialty that can help with this? and for this particular problem, can it be solved using programs like Adobe Illustrator or AutoCAD?
Forgive the noobness.
I don't think deduce is the right word.
You can get what you want if you add sufficient points and do Bezier spline fits to match the letters.
There might be a way to automate the process of adding points, but the "sufficient" criterion is tricky. And then you'd have to tell how to connect points with splines.
Sounds like you're trying to reproduce optical character recognition in Arabic.

Resources