튜브 연결하기 #1 (Connecting Tubes)

김강진·2023년 1월 26일

tube를 연결하려고 한다. 이를 위해 tube graph를 구성하고, tube를 노드와 같이 다루려고 한다. 하지만 여러 가지 고려해야 할 것이 있다. 첫 번째는 tube의 모양이다. 에지는 사각형, 노드는 육각형으로 고려하고 있다. 이를 모두 수용할 수 있는 클래스를 만들어야 한다. 두 번째는 좌표를 tube로 변환하는 방법이다. 상당히 많은 tube를 만들어야 하므로, modulo 방식으로 좌표를 인덱스화 한 다음 tube로 연결하려고 한다. 여기까지 마무리가 되면, 경로가 주어졌을 때, 일련의 tube를 구할 수 있을 것으로 예상한다.

I'm attempting to connect tubes. To accomplish this, I'm creating a tube graph and treating tubes as nodes. However, there are a few things to think about. The first consideration is the tube's form. I'm thinking of using rectangles for edges and hexagons for nodes. I'd have to make a class to handle both of them. The second method is converting coordinates to tubes. Because there may be a lot of tubes to make, I intend to connect the coordinates to tubes after converting them to indices. When I perform all of the aforementioned tasks, I hope to be able to compute a series of tubes given a path.

profile
전산학도

0개의 댓글