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
1 answer

How to draw a rectangle from user input using WPF

I want the user to enter the width and height of the rectangle and I want the rectangle to appear immediately after numbers have been entered. I don't want to have to push any buttons to have the rectangle appear. I had the rectangle code working…
1
vote
0 answers

How can I isolate and then manipulate shapes in Python?

I am working with a program called Pro Presenter. When this program starts up, I need to manually rearrange four blue boxes that represent projector screens, and they must be in a specific pattern for the program to work properly. Pro Presenter is…
Brenton
  • 37
  • 5
1
vote
0 answers

How to create a new instance (copy) of a shape you already have? JavaFX

I have a shape (don't know what kind of shape it is), and I want to create another shape that is exacly the same. I've tried this (as dumb as it sound): Shape b = a; (a beeing the shape I already have). Here is the actual code (simplified): …
1
vote
2 answers

Union Find to See if Shape Goes on One Side or the Other

I'm quite new to graphs and want to figure out my segmentation fault problem. My output is already correct but for some reason, as numShapes approach a higher number ~40, a segmentation fault error occurs. Program Details: The circuit has two sides…
Bel
  • 45
  • 7
1
vote
2 answers

Create an Ellipse in javavfx where the scaling is from the top left (like a Rectangle) rather than center

I have a javafx program that generates a canvas where a user can draw an Ellipse. I am using the press down, drag and release technique for the mouse. However I want to be able to scale the shape in size from the top left corner of the shape (much…
1
vote
1 answer

How to create an elbow connector from scratch programatically?

An "elbow connector" in MS-Word is a 3-segment line with a control point in the middle as shown where if I move the yellow control point sideways, then the length of the two lines on either side change accordingly while the end points remain the…
1
vote
0 answers

Closing a User-Drawn Circle

I have done a lot of research on the topic, but I don't seem to have the right questions to ask. I don't know what to call the problem I'm trying to solve. Thank you in advance for any help. The problem Suppose I have a user-drawn circle like…
retrovius
  • 782
  • 1
  • 10
  • 25
1
vote
1 answer

Numpy slicing multidimensional error produces unexpected result

I have a multidimensional array of this shape: (2, 200, 2, 3, 3, 114) I would like to extract a specific set of values from it using this command: pab[0][:][0][0][0][i] So basically I need each value iterated over the second dimension for fixes…
JRsz
  • 2,891
  • 4
  • 28
  • 44
1
vote
1 answer

Find distribution of 4 points in a given shape, so that areas of Voronoi Diagram have the same and biggest size

I have given a random shape, wherein I want to place 4 (or any other number) dots. The dots should be distributed, so that all areas of their Voronoi-Diagram have the same size of area and have the biggest size of area possible. I want to find an…
stackjojo
  • 11
  • 1
1
vote
0 answers

Extract polygons by color from mask image

I would like to extract the Polygon Shape by color, if it's possible the corner coordinates, Currently i'm trying with open-cv find contourns, but it's very precise i'm getting a lot of coordinates. what i want it's just the corner points to make…
ambigus9
  • 1,417
  • 3
  • 19
  • 37
1
vote
1 answer

Rendering problems Unity3D with some android phones

I don't know why some materials or shapes of my character are being poorly rendered in some Android phones. At first, I thought it had something to do with the GPU processor or the ram capacity or even the Android version. However, I ran it in 10-12…
1
vote
1 answer

cannot reshape array of size (x,) into shape (x,y,z,1)

I'm trying to convert a numpy ndarray with a shape of (2200,) to numpy ndarray with a shape of (2200,250,250,1). every single row contains an image (shape: 250,250,1) This is my object: type(x_train_left) prints numpy.ndarray x_train_left.shape…
Yarden Rotem
  • 85
  • 12
1
vote
2 answers

VBA - How to access "TextFrame2" property?

Consider that our VBA script programmatically does create a text-box Shape, which then contains an image of Inline-Shape kind, and store said text-box into the myShape variable, like below: Private Sub addImageButton_Click() Dim doc As Document:…
Top-Master
  • 7,611
  • 5
  • 39
  • 71
1
vote
3 answers

HTML5 - Canvas Shape Stroke

I have created 2 shapes, circle and rectangle, one on top of the other to resemble a key lock. I then try to apply a stroke but its stroking both shapes. What I want it to do is just stroke the merged pattern and not any of the…
fes
  • 2,465
  • 11
  • 40
  • 56
1
vote
0 answers

How to calculate the feature map shape of a deep CNN without a full forward pass?

I want to know the feature map shape (height and width only, not depth) of deep CNN backbones (eg. resnets, inception-v3) for a given image size to generate the proper anchor boxes. Some tensorflow implementations use the output_stride option of…
munikarmanish
  • 352
  • 2
  • 3
  • 13