How python extracts the central coordinates 5 in a set of points

Updated on technology 2024-05-13
6 answers
  1. Anonymous users2024-02-10

    The shackle furnace material is a little more talkative.

  2. Anonymous users2024-02-09

    Create a display group that only contains the node set, this node set may not be displayed, but with probe value you can output all the node numbers and their corresponding coordinates in this invisible display group In addition, in the main menu bar of the display module, the result can be output, the specific operation is a little forgotten, you can follow the prompts to operate Good luck!

  3. Anonymous users2024-02-08

    First of all, for your initial question, max(i for i in roudict) (or even max(roudict)) will be fine if roudict fits the (, format).

    Then it's a bit awkward to use a dictionary to store coordinates, and it's more natural to use lists and more abstract classes, but I'm not good at OOP ......For list storage, the integration function can be changed to such a thing (lop(list of points) is a list of points set).

    def integral(lop):

    prev, i = (none, none), 0 #initialize

    for (x, y) in lop:

    if prev: #

    x0, y0), prev = prev, (x, y)i += (y0 + y) *x - x0) / 2else:

    prev = x, y

    return i

    # way to access max_x of lop:

    max(x for (x, y) in lop)

  4. Anonymous users2024-02-07

    What type of roudict is needs to be explained. It's python's built-in set()?

  5. Anonymous users2024-02-06

    If you have a python interface in your GIS, see the documentation. If not, you can export the GIS data to Vector format. Then use python to parse this text file.

  6. Anonymous users2024-02-05

    lines are tuples of the coordinates of the two endpoints of each line in the graph you obtained. Such as(((0,0),(1,1))(0,2),(1,3))....

    for line in lines:

    p0, p1 = line

    You can iterate through the points (p0[0], p1[0]), p0[1], p1[1]) is the value of the line.

    Don't quite understand if you have a lot of straight lines in the graph, do you want to choose the beginning and end values of the straight line, or just a straight line, read the points of the straight line?

Related questions
9 answers2024-05-13

A group [ yī qún ].

Basic explanation: 1. The number of tables. Use in groups of people or animals. >>>More

16 answers2024-05-13

The word carnival experiences the lively and cheerful atmosphere of the flowers, dancing on the green grass and carnival, the flowers go to school, the author uses anthropomorphism to express, the flowers also go to school like themselves, and when they don't see them, they are underground, and now they are blooming, and they are lively and cheerful. >>>More

46 answers2024-05-13

It's very simple、Crawl on top of your girlfriend to block her。 >>>More

15 answers2024-05-13

First of all, the enemy is a group of prisms, which means that the use of troops & direct use of fortifications is over. >>>More

3 answers2024-05-13

This group generally manifests itself as an aggregation of latecomers. The reasons for the formation of such informal groups are complex, and some are formed on the basis of having fun; Some are transformed from other types of informal groups; Some members of this informal group generally have the experience of having their self-esteem tarnished in the formal group, and their academic failure has exacerbated their low self-esteem, anxiety and tension. In order to alleviate this internal and external mental pressure, and in order to find understanding and respect, they often gather with students who sympathize with them and have something in common with them. >>>More