Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

For questions about scalable 2D graphics based on vector operations, as opposed to raster graphics. For example, polygons, Bézier curves and ellipses.

0
votes
1answer
34 views

Bresenham's Algorithm not drawing horizontal lines

I'm getting started with graphics and I'm having trouble implementing the Bresenham's algorithm. Now, I know that my implementation is incomplente, but I can't see why it doesn't make horizontal lines(...
1
vote
0answers
39 views

How can I convert a shape made out of pixels to vertices

I'm trying to implement the solution to get the minimum dissection into rectangles of a rectilinear polygon. My shape is made out of pseudo-pixels (different width/height) but for the moment let's ...
0
votes
0answers
36 views

What open source software can calculate Coons Patches from source images for use with SVG's new mesh gradient feature?

Version 0.92 of inkscape supports the proposed Mesh Gradients for SVG which is based on Coons Patches. I watched one of the demo videos on youtube and it occurred to me that the simple grid-based ...
1
vote
0answers
19 views

File missing in Corel draw [closed]

I have downloaded Corel draw but I don't know why some file are missing in it . So I am unable to install it. These files are :-. 1. Common_retail_x64.msi. 2. Common_x64.cab. 3. Ghostscript.msi. I ...
2
votes
2answers
79 views

How to make a translation relative to the line ax + by + c = 0, affine transformations

(sorry for my english) The task: A triangle is specified. To realize its motion on the basis of mirror reflection with respect to an arbitrary line ax + by + c = 0, the coefficients of which are ...
1
vote
1answer
51 views

Why inverse of an allignment matrix is the same as its transpose?

$A_{v}^{-1}$ = $A_{v}^{T}$ $A_{v}$ = Allignment matrix that alligns vector v with z axis $=$\begin{bmatrix} \frac{\lambda}{|v|} & \frac{-ab}{\lambda|v|} & \frac{-ac}{\lambda|v|} &...
1
vote
0answers
153 views

How to correctly horizontally flip one layer in SVG?

I have PHP utility to create a graph in SVG based on data extracted from various sources (currently I test IoTool as that source). It is almost complete. But there are some parts that need to be ...
2
votes
1answer
108 views

how to build the feature curves of this algorithm?

I hope this is the right group to be able to expose my doubts about the implementation of the algorithm shown in this article. The question I have is how to do the feature curves, what I do not ...
4
votes
1answer
97 views

Determining Vanishing Points of edges of Triangle using given Point

Due to perspective foreshortening, the projections of parallel lines (1D geometric objects) meet in their vanishing point (a 0D geometric object). Higher dimensional geometric objects also has higher ...
3
votes
2answers
39 views

How to get the length of paths in an given font/character

I wan't create some LED-rope text, using some script font, like the following: For this I need somewhat estimate the needed length of the LED-rope for the given letter (or combinations of letters). ...
1
vote
1answer
179 views

Hooke's Law vector form

I'm studying spring model. There is a suggested equation (Hooke's Law vector form) But, I couldn't understand how to derive that equation. I'm reading 'Computer Animation Algorithms and Techniques ...
1
vote
1answer
97 views

Fill an irregular region with 2D shapes

I am creating a 2D CAD drawing generator in C# using .netDXF library. Given a area I want to fill it with rectangles/circles (convex). For example, the regions marked with numbers in below image. This ...
3
votes
1answer
224 views

Thick Line segment

How is this 'wy' equation for thick line segment derived?
1
vote
1answer
75 views

adobe illustrator art brush, how does it work?

I want to find out how the art brush in adobe illustrator works. It looks like it's taking some vector art and applying it to a smooth line. How can I go about implementing this?
5
votes
1answer
89 views

How can I verify if a selection area is over a shape in SVG?

I'm creating an SVG editor. I have a simple selection tool that appears when I click and move my mouse from a blank area in my SVG. My SVG is populated with rectangles that can have a rotation ...
5
votes
1answer
89 views

Determining the 'outer' subpath in a compound SVG path

The following four SVG paths render the same (using the default fill-rule="nonzero"): ...
1
vote
1answer
168 views

Vectorizing to polylines instead of paths

I am trying to implement a shape matching algorithm for vector images discussed in a paper. The input to the algorithm is a model of 2D shapes defined by contour segments. According to the paper, such ...
4
votes
2answers
116 views

First steps towards CAD standard curve fitting

I am interested in building a program to accomodate the following workflow: A user begins with an arbitrary vector/CAD shape, which they wish to transfer onto paper without using a printer (there are ...
2
votes
0answers
49 views

Vectorizing half tone images

Vectorizing continuous tone images is often met with color palette reduction and visual artifacts. Half-tone images, on the hand, have constant patterns in their tones, which would intuitively lead to ...
1
vote
1answer
94 views

What graphic languages are simpler than SVG for database diagrams? [closed]

This is PNG was exported from Inkscape. I created it manually and used the connector tool to link tables. I find the plain SVG for this diagram more complicated than I was expecting so would like to ...
1
vote
0answers
74 views
1
vote
1answer
445 views

Bezier Curve Tool Controlled by Mouse

So I have recently learned about Bezier Curves (quadratic & cubic) and have a thorough knowledge of how they work. In my graphics engine in DirectX I wanted to implement a Bezier Curve Tool ...
7
votes
1answer
920 views

How to represent an orthogonal graph from its edges and vertices data?

I am writing a software and I need to represent a graph in a orthogonal manner from topological data (vector of edges,vertices and their connectivity data) Graphs consist of a set of vertices and a ...
5
votes
1answer
99 views

inside and outside region identification from 2D contour

A 3D model is sliced against a plane and the resulting 2D contour is projected onto the plane. I am looking for an efficient algorithm to identify the inside and outside region of the contour. ...
5
votes
1answer
174 views

SVG opengl implementation - strokes overlap on transparency

I am trying to implement svg rendering by opengl using meshes. In paths with opacity less than 1, the color of overlapping strokes add up. But it should be like this the opengl calls are: ...
6
votes
0answers
128 views

scan line conversion

I am going throug the topic scan line conversion where the scan line parallel to the x-axis is put through the intersection test with all the edges of the polygon. Would there be any large ...
4
votes
1answer
359 views

Choosing & Using a Projection Matrix

I'm looking into the graphics pipeline processes and at the moment in particular, perspective projection matrices. After looking in several different sources, and across the breadth of previous ...
6
votes
2answers
149 views

Finding the angle of any side of a polygon

I'm trying to find the angle it would take for me to rotate a polygon so that a specific side is completely horizontal and on the bottom. For example, a shape like this: Needs to be rotated so the ...
18
votes
2answers
1k views

What is Illustrator's vector rasterization process?

I am currently trying to understand a few things about vector graphics rasterization and the different ways it is implemented in various application types. I tested and compared a few programs and ...
6
votes
1answer
252 views

How to calculate matching roundness of two offset rectangles?

I have two rectangles — one with a fill (blue) and one with a stroke (red). The red rectangle is being offset (depending on the stroke width) so that it appears snug and outside the edge of the blue ...
1
vote
1answer
110 views

What are forms of affine transformations?

Please help me tackle the below question: Explain THREE forms of affine transformations using relevant examples for each case. The answers I want to see are scaling, rotation and reflection.
20
votes
3answers
2k views

Performance of vector graphics versus bitmap or raster graphics

Sometimes I use vector graphics, simply because they look just slightly nicer in some cases, and other times, I use bitmap/raster graphics. I was wondering, are there any significant performance ...