Questions tagged [cylindrical]

58 questions
29
votes
1 answer

Warp Image to Appear in Cylindrical Projection

I want to warp a flat image in a way that it appears to be the projection coming from a cylinder. I have a flat image like this: and I want to show it as something like this in 2D image: I'm a bit phased out on geometrical projections. I visited…
Usman.3D
  • 1,791
  • 3
  • 16
  • 27
9
votes
4 answers

cylinder impostor in GLSL

I am developing a small tool for 3D visualization of molecules. For my project i choose to make a thing in the way of what Mr "Brad Larson" did with his Apple software "Molecules". A link where you can find a small presentation of the technique used…
nadir
  • 91
  • 1
  • 3
9
votes
2 answers

How to draw cylinder in y or x axis in opengl

I just want to draw a cylinder in opengl. I found lots of samples but all of them draws cylinders in z axis. I want them be in x or y axis. How can i do this. The code below is the code draw the cylinder in z direction and i dont want it …
brtb
  • 2,201
  • 6
  • 34
  • 53
8
votes
1 answer

Convert an image to cylindrical shape in java

I didn't find any examples in openCV to convert a flat image to cylindrical in java, I want it to render the image in 2d not 3d, also didn’t find any example code or book on it. Below is the image of pictures which I want to warp around a cup. A…
Aqeel Haider
  • 603
  • 7
  • 24
5
votes
1 answer

How do I get RMagick to wrap images around a cylinder?

I'm trying to wrap an image around a cylinder in RMagick (ImageMagick) and am having a tough time. There are several types of distortions (Barrel, Arc, Affine, etc.) that seem to be a good start but nothing really fits. I also uncovered a lot of…
Richard Hurt
  • 2,049
  • 24
  • 32
5
votes
4 answers

three.js - two points, one cylinder, align issue

(new to stackoverflow, new to webgl/three.js, ...) I'm using three.js r54 to plot a force-directed graph. the edges between the nodes are THREE.Lines, which is fine, but lines are not selectable with a raycaster. so my aim is to take cylinders…
ewo
  • 75
  • 2
  • 5
3
votes
1 answer

How can I make a cylindrical 3D contour plot in Matlab?

I have an axisymmetric flow with m x n grid points in r and z direction and I want to plot the temperature that is stored in a matrix with size mxn in a 3D cylindrical plot as visualized in the link below (My reputation is not high enough to include…
Frits
  • 113
  • 1
  • 8
3
votes
0 answers

360 Cylindrical panoramas - how to map them to a plane for viewing pleasure

I'm asking this question because most of the search results in Google and StackOverflow seem to be mostly about creating cylinder panoramas instead of creating code in OpenGLES 2.0 to view them. In short, I have a picture that I shot with my…
Gensoukyou1337
  • 1,507
  • 1
  • 13
  • 31
3
votes
1 answer

Matlab 3D plot on Cylindrical Axes

I've run simulations which have given me data points corresponding to X number of different radii, and Y number of angles each one was evaluated at. This means that I have X times Y data points which I need to plot. I am currently plotting it in an…
gkiar
  • 480
  • 1
  • 6
  • 20
2
votes
0 answers

Calculate efficiently volume intersection between sphere and fine hollow cylinder in Python

I have an infinite hollow cylinder which intersects spheres. I would like to calculate the volume of the intersection of a sphere in each of the cases shown here (view from above): The curvature is too large to assume that the intersection is…
yvrob
  • 105
  • 10
2
votes
1 answer

How to texture a cylinder in XNA4 with multiple textures?

Basically, I'm trying to cover a slot machine reel (white cylinder model) with multiple evenly spaced textures around the exterior. The program will be Windows only and the textures will be dynamically loaded at run-time instead of using the…
Scott
  • 145
  • 1
  • 10
2
votes
1 answer

cylindrical texture mapping opengl

I am trying to do a texture mapping in opengl, using a cylinder as an intermediate surface, that is, theta =(atan2(z1,x1)) + M_PI ; h = (y1); Here, x1, y1, z1 are the x,y,z of a vertex. u = theta , v = h Here is the texture I am using This is how…
Mn9
  • 85
  • 6
2
votes
1 answer

perspective view of a rectangular label pasted on cylindrical surface

Have a look at this image. This is the edge of perspective projection result of a rectangle region on a cylindrical surface (like a bottle). The rectangle's vertical median line is parallel with the axis of the cylindrical surface. I know how to…
zhy
  • 103
  • 2
  • 9
2
votes
5 answers

How many points define a cylinder?

It is known that 4 non-collinear, non-coplanar 3D points define a 3D sphere. Is there an equivalent property/theorem for cylinder?
101010
  • 41,839
  • 11
  • 94
  • 168
1
vote
2 answers

How to generate an elliptical cylinder, populate it with randomly distributed points, and measure instances of overlap between those points in R

I would like to determine the probability that a randomly distributed object of Type A occupies or touches (overlaps) the same space as any randomly distributed object of Type B when populated inside an elliptical cylinder. I would then like to loop…
JamesCrook
  • 23
  • 1
  • 6
1
2 3 4