Skip to main content

Questions tagged [vector-graphics]

Vector graphics is the use of geometrical primitives such as points, lines, curves, and shapes or polygon(s), which are all based on mathematical equations, to represent images in computer graphics. Images are drawn at run-time from the information stored, and so vector images do not get distorted after zoom/resize etc.

vector-graphics
2 votes
0 answers
59 views

Position vector into global world position vector using a camera

I am programming a 2d rendering engine with opengl, imgui and c++. The problem is to turn my mouse position into global world position using a camera. This is my current code inside my ...
a coder's user avatar
  • 21
0 votes
1 answer
69 views

EasySVG library php addText function problems with locating the text

i have misunderstanding about locating the text in svg file via EasySVG. I have an image in svg format 1200x1400px. I need to put the text to place by setting coordinates. require '../../lib/easysvg/...
Vadim Gerich's user avatar
1 vote
2 answers
51 views

I want to plot the route of a vector in a Lindenmayer system. How do I apply function to vector and get positions to plot?

This is my first question on stack overflow. I'm working on a script to plot a Lindenmayer-system. I already figured out how to do it by using the turtle package, but I would like to do it using ...
jaquesnado's user avatar
1 vote
1 answer
101 views

Pixels shown when saving colormap as vector graphics

I'm plotting (using pcolormesh) some colourmap figures to be added to my report written in Latex. I hope to save the figure as pdf so that I could use vector graphics in my report and Latex is happy ...
L L's user avatar
  • 31
1 vote
1 answer
135 views

Java: Insert a JFreeChart graphic into a powerPoint (pptx) as a vectorGraphic

I am generating graphs which I have to export into a powerPoint. I figured out how to convert the graph into a png and insert it into the powerPoint. However this is not ideal, if you want to zoom ...
valenzio's user avatar
  • 803
2 votes
2 answers
254 views

Reverse Bresenham algorithm? How to convert array of drawn pixels into coordinates

Does there exist an algorithm that can analyze an array of pixel coordinates, and return an array of line coordinates that, when drawn using Bresenham's algorithm, would generate lines that cover the ...
Kirkman14's user avatar
  • 1,666
0 votes
1 answer
103 views

Semi circle with rounded lines with CSS or SVG

I need semicircle merged with two lines with rounded corners, something like image. My attempt: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500"> <path style="fill: rgb(...
NeDark's user avatar
  • 1,304
0 votes
1 answer
274 views

How to make this simple figure to an SVG xml path?

In the last two days I'm trying to recreate this icon into an svg which I got only as an image. I'm really new to SVG coding. I tried to code it, but this is all what I got: <svg width="100&...
Rafael's user avatar
  • 13
0 votes
1 answer
41 views

In a drawing app based on vectors, how could you calculate all distinct closed regions when the user adds a freehand path to the drawing?

I'm looking to implement something similar to how Flash drawing worked. As follows: The user uses the freehand drawing tool to draw an arbitrary path. On finish of each path, the app calculates all ...
Jason Boyd's user avatar
  • 1,230
1 vote
0 answers
32 views

Stop the svg animation on a certain frame

I have an svg animation file. I want to stop this animation at a certain frame, for example frame 3. How to do it?
senops's user avatar
  • 31
-1 votes
1 answer
136 views

Subpixel accuracy when drawing vector graphics in Qt?

I have written a small test script in Python and PySide6 to test the vector graphics capabilities of Qt, in particular the accuracy when it comes to the exact shapes and positions of the drawn figures....
HelloGoodbye's user avatar
  • 3,844
0 votes
1 answer
102 views

Can you help me draw my 3D model of a chain to a specific direction?

With the code below I created a function to draw a 3D chain model in C# using the helix toolkit. This works exactly how I wanted to but... now I'm breaking my head around a good approach to draw the ...
jaapie's user avatar
  • 25
0 votes
1 answer
152 views

Crop large GeoJson layer using a standard machine

I need to extract a portion of a large GeoJson layer. I've tried multiple times with QGis on a 16Gb Ram intel i7 11th gen processor with no result. After about one hour if the program does not crash, ...
Caserio's user avatar
  • 472
0 votes
1 answer
258 views

Is it possible to have pixel hinting on vector graphics of an unknown size on a webpage?

Glyphs in typefaces for screens often use hinting to align the shapes with the screen pixels so the result has sharp edges. Could I do something similar with arbitrary vector graphics on a webpage? I ...
matj1's user avatar
  • 168
5 votes
0 answers
249 views

How to geometrically project 3D xyz vectors onto a plane orthogonal to the surface normals of a triangulated surface? R

I'm solving an equation with OLS which returns a timing point on an x/y/z surface mesh. I can solve for speed and directionality per the method outlined below. The problem is, my vectors are not ...
myfatson's user avatar
  • 444

15 30 50 per page
1 2
3
4 5
77