## Featured Editorial

## Latest Topics

# Introduction # This tutorial provides guidance on gathering data through web-scraping. However, to demonstrate the real-life issues with acquiring data, a deep-dive into a specific, complicated example is needed. The problem chosen, acquiring the geographic coordinates of gas stations in a region, turns into an interesting math problem that, eventually, involves "sacred geometry". ## Application Programming Interfaces (API's) ## No matter which Data Science Process [model](https://www.kdnuggets.com/2016/03/data-science-process-rediscovered.html) you subscribe to, actually acquiring data to work with is necessary. By far the most straightforward data source is a simple click-to-download in a standardized file format so you can utilize a parsing … |
+2 forum
1 | ||

Tutorial
How To Make Quality Voronoi Diagrams # What Are Voronoi Diagrams? # Voronoi Diagrams are an essential visualization to have in your toolbox. The diagram’s structure is a data-driven [tessellation](https://en.wikipedia.org/wiki/Tessellation) of a plane and may be colored by random or to add additional information. ## Learn the Lingo ## The set of points that generate the Voronoi diagram are called “seeds” or “generators” for they generate the polygon shapes; in practice, the seeds are your cleaned data. Each seed generates its own polygon called a Voronoi “cell,” and all of 2-dimensional (2D) space is associated with only one cell. A Voronoi cell, or Voronoi “region” denotes … |
+4 forum
4 | ||

hi, i need to past *.x 3d model file into vb6 script. can someone recomend some comprehensively teaching online redaction about? it will be good if there could possibly find way of puting multiple objects in. ex three to see the regle. thanks, i will publish the resultats, for next discussion when passin through... :\ |
+0 forum
0 | ||

Hello, I am working on a Tk program that generates geometric patterns, and I have written into all of my defs that if the variable "outline" is True it will draw a black outline, otherwise it will draw an outline the same as the fill. I tried a function called toggle: outline = True # when the program starts def toggle(dummy): #dummy is just to get the event from the bind, it isn't used. if outline == True: outline = False if outline == False: outline = True with a bind at the end: root.bind("k", toggle) this doesn't work because … |
+0 forum
3 | ||

**nestedTriangles.cpp (attached) description:** The program takes as input a pair of triangles, specified be giving the coordinates of each triangle's vertices. It then determines if either triangle is "nested" within the other, meaning that one triangle lies entirely within the interior of the other. **Pseudocode:** One triangle lies within another if and only if all three vertices of the first triangle lie within the interior of the second triangle. Suppose that we have a triangle with vertices A, B, and C, described by the coordinates (xA, yA), (xB, yB), and (xC, yC), respectively. The sides of the triangle are the … |
+0 forum
1 | ||

Hi, I am writing a Silverlight Bing Maps based application and I am trying to merge two (and more) polygons. The approach I am using at the moment is the following: The geometry for the polygons is stored in a database, and Im writing and reading from it through a WCF Service. So I get the geometry from the database, and I am dealing only with Polygons. The thing I did was to use the STUnion function in the SQL, through a StoredProcedure. It supposedly works, but here is the twist: Many of the polygons are not really sharing a … |
+0 forum
0 | ||

Hi guys, I hv the two coordinates of the map. Top left : 37 44 55.49S 144 52 30.73E bottom right: 37 47 54.43S 144 57 59.54E my map is a rectangle with 500width 800height. I want to get the mouse pointer in terms of lat long in degrees and minutes with x,y through out the map.Example if i click the map it should return lat, long and x, y) How do i convert the coordinates to something mathematical? How am i going to achieve this ? Thanks in advance Regards, Nishan |
+0 forum
20 | ||

Scanning from a laser line and usb cam V Python fill up memory to 1.6G and crash the system Smaller Scan works fine is there a better plotting module or a way of getting past V Python memory block? The plot must happen in color xyz rgb. [CODE]import thread import sys import time import CV import visual as PLOT from Geom_3D import * from Laser_Dots import * from Ply_Save import * from PLOT import * global linelist,linelist_2,PlotNumber,captureR global image,Red,Picsize,LessData,Stepper Stepper = 1 Cam = 1 Plot = 1 Liniar,Rotary = 0,1 Picsize = 320,240 Picsize = 640,480 LessData = 20 … |
+0 forum
0 | ||

Greetings, I've been given a challenge to build a simple game for my daughter. The idea is that you smash the spacebar, and a ball drops into the game, goes down some ramps, and lands at the bottom. Being a newbie programmer, this is becoming a challenge. I decided to use ray-tracing to determine if my ball has collided with the ramps, and I have a Polygon class that defines the vertices of the bounding boxes for collisions with the ramps. I know that I need to determine how many times the rays cross the edges of the polygon, and … |
+0 forum
1 | ||

Greetings! I'm almost finished in creating a geometry wars like game (except that you cant move =P ). For the last few days I've been stuck doing the diagonal movement of the bullets. I wish someone could help me =D here's the constructor of the bullet class x & y is the starting position of the bullet, while destinationX & Y is where the bullet should go. [CODE] public Bullet(int x, int y, int destinationX, int destinationY, GameEngine Engine) { super(x,y,Engine); setImage("graphics/bullet.png"); destX = destinationX; destY = destinationY; curX = x; curY = y; calculate(); }[/CODE] [CODE] private void calculate … |
+0 forum
2 | ||

I need to be able to take a point on an image and convert it into a point relative to a picturebox with the pictureSizeMode set to zoom here is the code that the picturebox uses to scale and center the image [CODE] Size size = this.image.Size; float num = Math.Min((float)(((float)base.ClientRectangle.Width) / ((float)size.Width)), (float)(((float)base.ClientRectangle.Height) / ((float)size.Height))); rectangle.Width = (int)(size.Width * num); rectangle.Height = (int)(size.Height * num); rectangle.X = (base.ClientRectangle.Width - rectangle.Width) / 2; rectangle.Y = (base.ClientRectangle.Height - rectangle.Height) / 2; return rectangle; [/CODE] I realize this returns a rectangle, but I need it to accept a point for example 0,0 … |
+0 forum
5 |

The End.