Questions tagged [cylindrical]

58 questions
0
votes
0 answers

From Matrix to polar plot

I have an np.array A in which a polar coordinate distribution Z=f(theta,r) is described by its elements Z=f(theta,r)=A[i,j]. I want to plot it in polar coordinates, like plt.imshow() does for Cartesian coordinates, if possible without converting it…
0
votes
1 answer

Bad cylindrical marker recognition on 13 and 14 iPhones

Making a project with Vuforia's cylindrical markers. Markers are relatively small ~60mm * 15mm It turns out a strange situation. On the latest iPhone models (13 and 14), the marker is very poorly recognized. On models X and 11, on iPads, recognition…
0
votes
0 answers

Ray tracing triangle intersection in cylindrical coordinates

I am using a finite difference Navier Stokes code that supports both cartesian and cylindrical coordinates. There is a task where we have a geometry given by a STL file (in cartesian coordinates) and we need to find intersections of rays that we…
0
votes
1 answer

Vuforia cylindrical image target ratio question

I'm going crazy with cylindrical image target. I read the Vuforia doc about how to calculate ratio but I need to have a sample made with numbers... Then, for example, I have a bottle coke, I enter Top = 6.5 Bottom 6.5 and Height 11. My image is 529…
Kafar
  • 29
  • 5
0
votes
0 answers

html canvas draw cylindrical view of the image by drawing vertical slices

I am using below code to draw a cylindrical view of the image by drawing vertical slices of the image: DrawMug(canvasId, cupImg, rotate, scale) { var canvas: any = document.getElementById(canvasId); var ctx = canvas.getContext("2d"); …
Ashok Damani
  • 3,896
  • 4
  • 30
  • 48
0
votes
2 answers

plot cylindrical coordinate using an x y file in gnuplot

I would like to make a 3D plot with gnuplot using the interface.txt file (File). Knowing that I have a y-axis rotation invariance. This figure represents a 2D section (plot 'interface.txt' u 2:1) Here's what I'd like to have with gnuplot but I…
Suntory
  • 305
  • 2
  • 15
0
votes
1 answer

Maple: How to convert Cylindrical coordinates to Cartesian coordinates?

We get some expression in Cylindrical coordinates (r, ϕ, z ) like : expr := r*z^2*sin((1/3)*ϕ) we need to convert it into Cartesian coordinates and than back to Cylindrical coordinates. How to do such thing? So I found something like…
Rella
  • 65,003
  • 109
  • 363
  • 636
0
votes
1 answer

Incorrect vertices in 3d cylinder

Right now, I'm trying to draw a 3d cylinder shape in webgl, where the top is thinner than the bottom. The cylinder is also uncapped. The cylinder is drawn using triangles for the sides, with a dodecagon (12 sides) as the circle. However, one of my…
0
votes
1 answer

Code for converting Cartesian (x,y,z) to Cylindrical (ρ,θ,z) coordinates 2D/3D

Is there any code in C++ to converts from Cartesian (x,y,z) to Cylindrical (ρ,θ,z) coordinates in 2-dimensions and 3-dimensions!! Thanks
MAY
  • 13
  • 2
0
votes
2 answers

How generate random points within cylinder

how to generate uniformly distributed points within cylinders giving these parameters, Center point denoted as C, C1 is bottom and C2 is Top and R is Radius. C1=[5.697592e-01, 3.159923e-01, 1.037074e+00];C2=[4.211637e-01, 5.624242e-01,…
0
votes
1 answer

Solution to diffusion equation in cylindrical coordinates using FiPy not correct

The steady-state solution to a diffusion equation in cylindrical geometry using FiPy is rather different from the solution obtained from another software, eg., Mathematica. The equation is: $0 =…
AJHC
  • 285
  • 3
  • 7
0
votes
1 answer

Anamorphosis in Python

I tried to do anamorphosis on an image by following this link https://github.com/aydal/Cylinderical-Anamorphosis/blob/master/anamorph.py It gives an anamorphic image but it gives that image in the half circle. But I want the output in a full circle…
Nihar
  • 333
  • 1
  • 6
  • 18
0
votes
0 answers

Contour plot on the surface of a 3D cylinder

Because of your great help I can now plot a 3D cylinder with a hole inside :) This is my code: import numpy as np import matplotlib as mlp import matplotlib.pyplot as plt import mpl_toolkits.mplot3d.axes3d as axes3d inner_radius = 100 outer_radius…
roflcopter122
  • 165
  • 1
  • 14
0
votes
1 answer

How to find points inside, where sphere intersects with cylinder in MATLAB?

I am trying to identify points of sphere that are inside union of both sphere and cylinder, I have generated random points in side a cylinder as below pts = 3000; r= 3*((rand(pts,1)).^(1/3)); theta = 2*pi*rand(pts,1); x= r.*cos(theta); y=…
manoos
  • 1,675
  • 3
  • 21
  • 46
0
votes
1 answer

Unity: Faux Gravity - inner Capsule/ Cylinder

I'm struggling with false Gravity in a Cylinder or Capsule. Basically I thought I could take the same Code as for spherical gravity, which does not work. So I changed some lines to get a better result. [SerializeField] float gravity =…
user7183273