Questions tagged [shapes]

Questions related to drawing or defining shapes.

A shape is a geometric representation of some object, defined by the external boundaries which encompass the object.

For 2-D shapes like the circle, , and rectangle their shape is constructed of lines connected together.

3-D shapes are defined by a 2-D which envelopes the interior 3-D volume.

4362 questions
1
vote
0 answers

Incorrect Rotation of Shape in Python

I'm trying to create a rotating plane in pygame. I'm converting 3d (x, y, z) coordinates to screen coordinates (x, y), and then rotating the screen coordinates. This seems to work when its rotating on both the x and y axis, but when it's rotating on…
da123
  • 11
  • 1
1
vote
0 answers

Lost lines when transfer text from a table to a shape in PowerPoint

I have been working on a PowerPoint presentation for a game show at my high school. I tried to import questions from a PowerPoint table like this: using the code as follows: Slide1.Shapes("question").TextFrame.TextRange.Text =…
1
vote
1 answer

Android use to set view background,solid not work

when I use to set radius,the solid worked, but when I use
Octopus
  • 11
  • 1
1
vote
1 answer

Is there a simple math solution to sample a disk area light? (Raytracing)

I'm trying to implement different types of lights in my ray-tracer coded in C. I have successfully implemented spot, point, directional and rectangular area lights. For rectangular area light I define two vectors (U and V) in space and I use them to…
peppone
  • 85
  • 6
1
vote
2 answers

How to determine if two rectangles overlap (At angle)

I want to determine if two rectangles overlap (Not intersect). I know how to do this for axis aligned rectangles, but in this case I have one rectangle that isn't always axis aligned (aka rotated on its center). This post shows how to calculate two…
Protofall
  • 612
  • 1
  • 6
  • 15
1
vote
1 answer

I can't put two or more svg shapes in my js file and have them show on my website

When I open my html page in a web browser I only can see the first shape in this list, the other shapes don't appear as if there was no code for them. I wrote the code in two separate files, an html file and a js file. Can anyone tell me please if…
Rouba
  • 59
  • 2
  • 10
1
vote
1 answer

Is there a way to sort coordinates in a way so that if you plot the data it forms a closed shape?

I have a set of coordinates that represents a closed shape. The data seems to be in random order. When I plot the data in points, it shows a closed shape. But when I plot it with lines, The lines are plotted all over the place. The data I use is as…
theo lam
  • 25
  • 5
1
vote
0 answers

Changing size of png situated on ggplot in r

img2 <- png::readPNG("IGCE.png") shape <- readOGR(dsn = "C:/Users/Владимир/Desktop/ИГКЭ/QGIS", layer = "ne_50m_land") rast <- grid::rasterGrob(img2, interpolate = T) ggplot()+ geom_polygon(data = g, aes(x = long, y = lat, group = group), colour =…
1
vote
2 answers

UIView background color always BLACK while drawing UIBezierPath

I'm adding ShapeView which is subclass of UIView to View Controller in which I'm drawing Bezier Path and the background of that view always stays black. I tried to fix my problem with answers from UIView Background Color Always Black and Cant Change…
T.Jurko
  • 152
  • 11
1
vote
1 answer

Why does my tkinter object keep changing shape?

I have created an image on a canvas in tkinter that responds to a button event. And, the object is created on position x and position y where that event took place. But the object changes shape constantly. def leftclick(event): …
TP123
  • 21
  • 5
1
vote
1 answer

How does numpy determine the dimensions of a column vector?

I'm starting out with numpy and was trying to figure out how its arrays work for column vectors. Defining the following: x1 = np.array([3.0, 2.0, 1.0]) x2 = np.array([-2.0, 1.0, 0.0]) And calling print("inner product x1/x2: ", np.inner(x1,…
twigonometry
  • 166
  • 1
  • 9
1
vote
0 answers

Triangle detection in bicycle image with opencv

I am trying to detect the triangle in different bicycle Images. For example this image !(https://surlybikes.com/uploads/bikes/_medium_image/BridgeClub_BK9997.jpg) I am new to OpenCV and am trying the cv.approxPolyDP method. However, I am not…
1
vote
1 answer

How to break this shape reference code in 2 lines?

This code works fine, but i have my sheet BLOCKED for selections. Sheets("sheet1").Shapes("test_" & i).Select Selection.Formula = "" ...and i want to to this: Sheets("sheet1").Shapes("test_" & i).Formula = "" But i got the object error to not…
1
vote
1 answer

Why I can't move a Path in WPF?

I tried to move (hold the left mouse button and drag) a UIElement on a Canvas in Wpf. It worked for a Rectangle but when I tried the same to a Path shape it does not move. Here is the layout, just 2 elements inside a canvas:
Themelis
  • 4,048
  • 2
  • 21
  • 45
1
vote
1 answer

How to find the shapes of activations in the different layers of a pretrained InceptionResNetV2 model in Keras - Tensorflow 2.0

I have load the inceptionResNetV2 Keras model base_model = tf.keras.applications.inception_resnet_v2.InceptionResNetV2(include_top=False, weights='imagenet') I want to find the shapes of the activations outputed by different layers -- assuming a…
user8270077
  • 4,621
  • 17
  • 75
  • 140