Category : points

I would like to find the length between two points from an IFC model.This is an example of an IfcWall from the IFC model. #26322= IFCWALL(‘3vpWoB_K1EZ8RCaYmNGsB2′,#42,’Basiswand:Bestand 08.0:162343′,$,’Basiswand:Bestand 08.0:161894′,#25861,#26318,’162343’,.NOTDEFINED.); #26325= IFCPROPERTYSET(‘3vpWoB_K1EZ8RCcT4NGsB2′,#42,’Pset_WallCommon’,$,(#787,#788,#848,#25851)); #26327= IFCRELDEFINESBYPROPERTIES(‘0rDc6OePf5NBrNT2GfJ3hm’,#42,$,$,(#26322),#26325); #26331= IFCCARTESIANPOINT((12.5832056790716,5.54096330043285,0.)); #26333= IFCAXIS2PLACEMENT3D(#26331,#20,#18); #26334= IFCLOCALPLACEMENT(#140,#26333); #26335= IFCCARTESIANPOINT((4.24,0.)); #26337= IFCPOLYLINE((#10,#26335)); #26339= IFCSHAPEREPRESENTATION(#102,’Axis’,’Curve2D’,(#26337)); The IFCPOLYLINE has two Points (#10=0,0 and #26335=4.24,0.) and i would ..

Read more

I would like to generate random numbers for x,y within a certain bound. There already exist values for x,y which gives the boundary for the given object, see Figure. Now the goal is to generate more points within the bound. Unfortunately I dont know how to do this. Any help is appreciate it. Source: Python ..

Read more

I have been making this card memorising game for my school assignment, and this keeps coming out wrong. the code is if "K" or "Q" or "J" or "10" in (DECK1[int(x1)][int(sthlh)],DECK1[int(x2)][int(sthlh2)]): points[current_p-1]+=10 print("congrats !", names[current_p-1], "+10 points. you have",int(points[current_p-1]), "points.") and no matter what cards I open in the game, either they are k and ..

Read more

I want wo find out all extreme points of a function. This is what I have tried so far: import matplotlib.pyplot as plt from scipy.signal import find_peaks scale_factor = 0.01 peaks, _ = find_peaks(derivation) plt.plot(x_values[:-2], derivation) plt.plot(peaks*scale_factor, derivation[peaks], "x") plt.show() This is the output: The problem is that I would like to have all extreme ..

Read more

class Team: def __init__(self, team, win=0, draw=0, loss=0, scored=0, conceeded=0): self.team = team self.win = win self.loss = loss self.draw = draw self.scored = scored self.conceeded = conceeded def get_points(self): return self.win*3 + self.draw def get_difference(self): return self.scored – self.conceeded def get_table_row(self): return (self.team + " "*(20-len(self.team)) + str(self.win) + "t" + str(self.draw) + "t" ..

Read more

Is there a function in python to generate points randomly in $R^2$ space, which are well spread from each other. What I see a method is to randomly generate points in 1D space and create arrays out of it and then make 2D points and plot. But if there is any function available for doing ..

Read more