[go: up one dir, main page]

JPH01175682A - Inter-polygon intersection line calculation system - Google Patents

Inter-polygon intersection line calculation system

Info

Publication number
JPH01175682A
JPH01175682A JP62333368A JP33336887A JPH01175682A JP H01175682 A JPH01175682 A JP H01175682A JP 62333368 A JP62333368 A JP 62333368A JP 33336887 A JP33336887 A JP 33336887A JP H01175682 A JPH01175682 A JP H01175682A
Authority
JP
Japan
Prior art keywords
intersection
polygon
plane
intersection point
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP62333368A
Other languages
Japanese (ja)
Inventor
Katsuya Shinohara
克也 篠原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP62333368A priority Critical patent/JPH01175682A/en
Publication of JPH01175682A publication Critical patent/JPH01175682A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To reduce calculation required quantity and to shorten a processing time by sorting the intersection point of an edge and a plane found not in order at a spatial position relation and finding an intersection line in the order. CONSTITUTION:A polygon supplying means 12 fetches the equation data of a plane B and the three-dimentional coordinate value of both edge points of the each edge of a polygon A in order from a storage means 11, and an intersection point calculating means 13 calculates the coordinate value of an intersection point. A sorting means 14 sorts the coordinate value of the intersection point and sends the result to an intersection line judging means 15. Next, in the same way, the edge of a polygon B and the intersection point of a plane A are found, and the sorted result is sent to the intersection line judging means 15. The intersection line judging means 15 finds an area involved in common in either area to link the intersection point of the (2n-1)-th and the 2n-th of the sorting result of the intersection point of the polygon A and the plane B and in either area to link the intersection point of the (2m-1)-th and the 2m-th of the sorting result of the intersection point of the polygon B and the plane A as the intersection line of the polygon A and the polygon B. Thus, it is satisfied only by the twice sorting of the intersection point, and calculation required quantity is reduced.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、例えば機械設計支援システムの提供する3次
元図形処理機能のうち、二つの多角形間の交線を求める
方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for determining an intersection line between two polygons among three-dimensional graphic processing functions provided by, for example, a mechanical design support system.

〔従来の技術〕[Conventional technology]

従来、二つの多角形の間の交線は次のような手順で求め
ている。
Conventionally, the line of intersection between two polygons is found using the following procedure.

■ 一方の多角形(以降、多角形Aと呼ぶ)の辺と、他
方の多角形(多角形Bと呼ぶ)を含む平面(平面Bと呼
ぶ)との交点を求める。
(2) Find the intersection between the sides of one polygon (hereinafter referred to as polygon A) and the plane (hereinafter referred to as plane B) that includes the other polygon (hereinafter referred to as polygon B).

■ ■で求めた交点と多角形Bの頂点の位置関係から、
この交点が多角形Bの内部に含まれるか否かを判定する
。以降、この判定処理を内外判定処理と呼ぶ。
■ From the positional relationship between the intersection obtained in ■ and the vertices of polygon B,
It is determined whether this intersection is included inside polygon B. Hereinafter, this determination process will be referred to as inside/outside determination process.

■ 多角形Aの全ての辺について■、■の処理を行い、
多角形Bの内部に含まれる全ての交点を求める。
■ Perform processing ■ and ■ for all sides of polygon A,
Find all intersections contained within polygon B.

■ 多角形Bの辺と、多角形Aを含む平面(平面Aと呼
ぶ)との間でも、■、■、■と同様の処理を行い、多角
形Aの内部に含まれる全ての交点を求める。
■ Perform the same processing as ■, ■, ■ between the sides of polygon B and the plane containing polygon A (referred to as plane A), and find all the intersections included inside polygon A. .

■ 上記手順で求めた全交点において、隣接する2交点
を結ぶ線を交線とする。
■ Among all the intersection points found in the above procedure, the line connecting two adjacent intersection points is defined as the intersection line.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来の方式では、上記■と■の処理を多数回繰り返した
後、■の処理を行うのであるが、通常、■の内外判定処
理が■の処理と比較して大量の計算量を必要とするため
、全体の処理時間が遅くなる。
In the conventional method, the process of ■ is performed after repeating the processes of ■ and ■ above many times, but the process of determining the inside/outside of ■ usually requires a large amount of calculation compared to the process of ■. This slows down the overall processing time.

本発明の目的は、上述のような問題点を解決し、計算所
要量を減少させ処理時間を短縮した多角形量交線算出方
式を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a polygon quantity intersection line calculation method that solves the above-mentioned problems, reduces the amount of calculation required, and shortens processing time.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の方式は第1図に示すように、次の五つの手段か
ら構成される。
As shown in FIG. 1, the system of the present invention is comprised of the following five means.

■)二つの多角形の各々について、多角形の含まれる平
面の方程式と全辺の両端点の座標値を保持する記憶手段
11゜ 2)多角形の含まれる平面の方程式と全辺の両端点の座
標値を記憶手段11から取り出し交点算出手段に送出す
る多角形供給手段12゜ 3)3次元空間内の線分と平面との交点を求める交点算
出手段13゜ 4)3次元空間の一直線上に存在する交点をソーティン
グするソーティング手段14゜ 5)同一直線上に存在する2組の順序付けされた交点列
をもとに、一方の組の交点列の2n−1番目と2n番目
の交点を結ぶ領域のいずれかと、他方の組の交点列の2
m−1番目の2m番目の交点を結ぶ領域のいずれかとに
、共通して含まれる領域を求める交線判定手段15゜た
だし、nは2nが前者の交点列に含まれる点の数を越え
ない自然数を表し、mは2mが後者の交点列に含まれる
点の数を越えない自然数を表す。
■) For each of the two polygons, storage means 11° that holds the equation of the plane in which the polygon is included and the coordinate values of both end points of all sides 2) The equation of the plane in which the polygon is included and the coordinate values of both end points of all sides Polygon supply means 12゜ which takes out the coordinate values of from the storage means 11 and sends them to the intersection calculation means 3) Intersection calculation means 13゜ which calculates the intersection between a line segment in three-dimensional space and a plane 4) On a straight line in three-dimensional space Sorting means for sorting the intersection points existing in 2 of the intersection sequence of one of the regions and the other set
Intersection line determination means 15° for determining a region that is commonly included in any of the regions connecting the m-1th and 2mth intersection points.However, n does not exceed the number of points included in the former intersection sequence. m represents a natural number where 2m does not exceed the number of points included in the latter intersection sequence.

〔作用〕[Effect]

本発明の方式では、順不同に求められる辺と平面との交
点を空間的な位置関係でソートして、その順番によりい
ずれかの多角形の内部に含まれる交点を検出し交線を求
める。具体的処理手順を以下に説明する。
In the method of the present invention, the intersections between the sides and the plane, which are obtained in random order, are sorted according to their spatial positional relationship, and based on the order, the intersections included within any polygon are detected and the intersection lines are obtained. The specific processing procedure will be explained below.

■ 多角形Aの全ての辺と、平面Bとの交点を求める。■ Find the intersections of all sides of polygon A and plane B.

■ ■で求めた交点は、−直線(平面Aと平面Bの交線
)上に存在する。この直線上の隣接関係により、交点を
ソーティングする。
② The intersection found in ② exists on the − straight line (intersection line of plane A and plane B). The intersection points are sorted based on this linear adjacency relationship.

■ ■、■と同様にして多角形Bの辺と平面Aとの交点
をソーティングする。
■ Sort the intersections of the sides of polygon B and plane A in the same way as in ■ and ■.

■ ■のソーティング結果のうち、2n−1番目と2n
番目の交点を結ぶ線分を多角形Aと平面Bとの交線とし
、同様に、■のソーティング結果のうち、2m−1番目
と2m番目の交点を結ぶ線分を多角形Bと平面Aの交線
とする。そして、これらの交線の共通部分を多角形Aと
多角形Bの交線とする。
■ Among the sorting results of ■, 2n-1st and 2n
The line segment connecting the th intersection point is the intersection line between polygon A and plane B, and similarly, the line segment connecting the 2m-1th and 2mth intersection points is the intersection line between polygon A and plane A. Let be the intersection line of The common portion of these lines of intersection is defined as the line of intersection between polygon A and polygon B.

以上のような処理手順を実行するには、まず、記憶手段
11は多角形Aと多角形Bの全ての辺の両端点の座標値
と平面Aおよび平面Bの方程式を保持する。
To carry out the above-described processing procedure, first, the storage means 11 stores the coordinate values of both end points of all sides of polygon A and polygon B and the equations of plane A and plane B.

多角形供給手段12は記憶手段11から、まず、平面B
の方程式データを取り出し、次に、多角形Aの各辺の両
端点の3次元座標値を順次取り出し、これらのデータを
交点算出手段13に送出する。
The polygon supply means 12 first obtains the plane B from the storage means 11.
Next, the three-dimensional coordinate values of both end points of each side of the polygon A are sequentially extracted, and these data are sent to the intersection calculation means 13.

交点算出手段13は平面Bの方程式データと多角形Aの
各辺の両端点の座標値を基にその辺が平面と交わるかを
判定し、交わる場合は交点の座標値を計算してソーティ
ング手段14に送出する。
The intersection calculation means 13 determines whether the side intersects with the plane based on the equation data of the plane B and the coordinate values of both end points of each side of the polygon A, and if the side intersects with the plane, calculates the coordinate values of the intersection point and uses the sorting means Send on 14th.

ソーティング手段14は以上の処理が終了すると、その
時までに受は取った交点の座標値をソーティングし、そ
の結果を交線判定手段15に送出する。
When the above-mentioned processing is completed, the sorting means 14 sorts the coordinate values of the intersection points taken up to that time, and sends the results to the intersection line determination means 15.

次に、上記と同様にして、多角形Bの辺と平面Aの交点
を求め、ソーティングした結果を交線判定手段15に送
出する。
Next, in the same manner as described above, the intersections between the sides of the polygon B and the plane A are determined, and the sorted results are sent to the intersection line determining means 15.

交線判定手段15は多角形Aと平面Bの交点のソ−ティ
ング結果の2n−1番目と2n番目の交点を結ぶ領域の
いずれかと、多角形Bと平面Aの交点のソーティング結
果の2m−1番目と2m番目の交点を結ぶ領域のいずれ
かとに、共通して含まれる領域を多角形Aと多角形Bの
交線として求める。但し、n、:mは前述したように自
然数である。
The intersection line determining means 15 selects one of the areas connecting the 2n-1st and 2nth intersections of the sorting results of the intersections of polygon A and plane B, and 2m- of the sorting results of the intersections of polygon B and plane A. A region that is commonly included in any of the regions connecting the 1st and 2mth intersection points is determined as the intersection line of polygon A and polygon B. However, n and :m are natural numbers as described above.

〔実施例〕〔Example〕

本発明の実施例を第2図の二つの多角形を用いて説明す
る。
An embodiment of the present invention will be explained using two polygons shown in FIG.

第2図(a)は互いに交差する多角形a  (21)と
多角形b (22)を表している。
FIG. 2(a) shows a polygon a (21) and a polygon b (22) that intersect with each other.

第1図の記憶手段11は多角形a  (21)と多角形
b (22)の全辺の両端点の座標値と、各々の多角形
a、bを含む平面(平面aと平面b)の方程式を保持す
る。多角形供給手段12が記憶手段11から平面すと多
角形aのデータを取り出し交点算出手段13に送出する
と、交点算出手段13が第2図(b)の・印で表される
交点を求める。これらの交点は平面aと平面b (24
)の交線25上に存在する。次に、ソーティング手段1
4が第2図(b)の交点をソーティングし第2図(C)
のように順序づける。
The storage means 11 in FIG. 1 stores the coordinate values of both end points of all sides of polygon a (21) and polygon b (22), and the planes (plane a and plane b) containing each polygon a and b. Keep the equation. When the polygon supply means 12 extracts the data of the plane polygon a from the storage means 11 and sends it to the intersection point calculation means 13, the intersection point calculation means 13 finds the intersection point indicated by the mark . in FIG. 2(b). These intersection points are plane a and plane b (24
) exists on the intersection line 25. Next, sorting means 1
4 sorts the intersection points in Figure 2 (b) and then displays Figure 2 (C).
Order as follows.

多角形b (22)と平面a  (23)についても同
様にして第2図(d)の○印で表される交点を求めて、
第2図(e)のように順序づける。最後に、交線判定手
段15が、第2図(f)の一番上の線の太線で表される
、・印の交点の1番と2番、3番と4番、5番と6番を
つなぐ領域と、第2図Cf’)の中間の線の太線で表さ
れる、○印の交点の1番と2番、3番と4番、5番と6
番をつなぐ領域の共通領域(第2図(f)の一番下の線
の太線で表される領域)を求める。これが、求めるべき
多角形a  (21)と多角形b (22)の交線であ
る。但し、第2図(f)の3本の線は説明のために別々
に描いたが、空間内では同一直線である。求めた交線と
多角形a  (21) 、多角形b (22)との関係
を第2図(g)に示す。図中、交線は太線で示されてい
る。
Similarly, for polygon b (22) and plane a (23), find the intersection indicated by the circle in Fig. 2(d),
The order is as shown in FIG. 2(e). Finally, the intersection line determination means 15 detects the intersection points 1 and 2, 3 and 4, and 5 and 6 of the marks represented by the thick line at the top of FIG. 2(f). No. 1 and 2, No. 3 and No. 4, No. 5 and No. 6 of the intersections of the ○ marks, which are represented by the thick line between the area connecting the numbers and the middle line of Figure 2 Cf').
The common area of the areas connecting the numbers (the area represented by the thick bottom line in FIG. 2(f)) is determined. This is the intersection line of polygon a (21) and polygon b (22) to be found. However, although the three lines in FIG. 2(f) are drawn separately for the sake of explanation, they are the same straight line in space. The relationship between the obtained intersection line and polygon a (21) and polygon b (22) is shown in FIG. 2(g). In the figure, the intersection lines are indicated by thick lines.

〔発明の効果〕〔Effect of the invention〕

本発明の方式によれば、交点のソーティングが必要にな
るものの、内外判定処理が不要になる。
According to the method of the present invention, although sorting of intersection points is required, inside/outside determination processing is not necessary.

内外判定処理は交点のソーティングに比較して計算量が
多く、さらに、従来の方式では交点の数だけ内外判定処
理を行う必要があるのに対し、本発明の方式では2回だ
け交点のソーティングを行えばよい。このため、本発明
の方式により計算所要量が減少する。
The inside/outside determination process requires a large amount of calculation compared to the sorting of intersection points.Furthermore, in the conventional method, it is necessary to perform the inside/outside determination process for the number of intersections, whereas the method of the present invention only sorts the intersection points twice. Just go. Therefore, the method of the present invention reduces computational requirements.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、本発明の多角形量交線算出方式の構成図、 第2図は、本発明の一実施例を表す図である。 1〜6・・・交点の順序 11・・・・・記憶手段 12・・・・・多角形供給手段 13・・・・・交点算出手段 14・・・・・ソーティング手段 15・・・・・交線判定手段 21・・・・・多角形a 22・・・・・多角形b 23・・・・・平面a 24・・・・・平面b 25・・・・・平面aと平面すの交線 代理人 弁理士  岩 佐  義 幸 FIG. 1 is a configuration diagram of the polygon quantity intersection line calculation method of the present invention, FIG. 2 is a diagram representing one embodiment of the present invention. 1 to 6...Order of intersections 11... Memory means 12...Polygon supply means 13... Intersection calculation means 14... Sorting means 15...Intersection line determination means 21...Polygon a 22...Polygon b 23...plane a 24...plane b 25...Intersection line of plane a and plane S Agent Patent Attorney Yoshiyuki Iwa

Claims (1)

【特許請求の範囲】[Claims] (1)二つの多角形の各々について、多角形の含まれる
平面の方程式と全辺の両端点の座標値を保持する記憶手
段と、 多角形の含まれる平面の方程式と全辺の両端点の座標値
を記憶手段から取り出し交点算出手段に送出する多角形
供給手段と、 多角形供給手段から送られてきた方程式と座標値から3
次元空間内の線分(辺)と平面との交点を求める交点算
出手段と、 交点算出手段で求められた3次元空間の一直線上に存在
する交点をソーティングして順序づけるソーティング手
段と、 同一直線上に存在する2組の順序付けされた交点列をも
とに、一方の組の交点列において2nが交点列に含まれ
る交点の数を越えない全ての自然数nに対応する2n−
1番目と2n番目の交点を結ぶ領域のいずれかと、他方
の組の交点列において2mが交点列に含まれる点の数を
越えない全ての自然数mに対応する2m−1番目と2m
番目の交点を結ぶ領域のいずれかとに、共通して含まれ
る領域を求める交線判定手段とから構成されることを特
徴とする多角形間交線算出方式。
(1) For each of the two polygons, a storage means that stores the equation of the plane in which the polygon is included and the coordinate values of both end points of all sides; A polygon supply means that extracts coordinate values from the storage means and sends them to an intersection calculation means, and 3.3 from the equation and coordinate values sent from the polygon supply means.
Intersection calculation means for calculating the intersection between a line segment (side) in a dimensional space and a plane; and a sorting means for sorting and ordering the intersection points existing on a straight line in the three-dimensional space calculated by the intersection calculation means; Based on two sets of ordered intersection sequences existing on a line, 2n- corresponding to all natural numbers n in which 2n does not exceed the number of intersections included in the intersection sequence of one set
2m - 1st and 2m corresponding to all natural numbers m where 2m does not exceed the number of points included in the intersection sequence in either of the areas connecting the 1st and 2nth intersections and the other set of intersection sequences.
An inter-polygon intersection line calculation method comprising an intersection line determining means for determining a region commonly included in any of the regions connecting the th intersection point.
JP62333368A 1987-12-29 1987-12-29 Inter-polygon intersection line calculation system Pending JPH01175682A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62333368A JPH01175682A (en) 1987-12-29 1987-12-29 Inter-polygon intersection line calculation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62333368A JPH01175682A (en) 1987-12-29 1987-12-29 Inter-polygon intersection line calculation system

Publications (1)

Publication Number Publication Date
JPH01175682A true JPH01175682A (en) 1989-07-12

Family

ID=18265327

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62333368A Pending JPH01175682A (en) 1987-12-29 1987-12-29 Inter-polygon intersection line calculation system

Country Status (1)

Country Link
JP (1) JPH01175682A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113886932A (en) * 2021-10-25 2022-01-04 上海品览数据科技有限公司 Automatic wire breaking method for wire connection of CAD electrical drawing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113886932A (en) * 2021-10-25 2022-01-04 上海品览数据科技有限公司 Automatic wire breaking method for wire connection of CAD electrical drawing

Similar Documents

Publication Publication Date Title
EP0306989B1 (en) 3D dimensioning in computer aided drafting
EP0137432A2 (en) Form creating system
JP2618951B2 (en) 3D graphics processor
US5745117A (en) System and method of creating a three-dimensional solid model from a plurality of two-dimensional drawings
EP0435492B1 (en) Method and system for displaying a three-dimensional object
Ahn et al. Approximate general sweep boundary of a 2D curved object
JPH01175682A (en) Inter-polygon intersection line calculation system
JPS60163162A (en) How to define the shape of a three-dimensional connected body
EP0155183A2 (en) Geometric processing apparatus
JPS63118982A (en) Arithmetic processing method for deciding whether points are inside or outside on polygon
JP3040878B2 (en) Three-dimensional interference check method and device
JPH05274393A (en) Three-dimensional cad system
JPH036785A (en) Clipping circuit
JP3187814B2 (en) Method and apparatus for creating surface shape data of object
JPH02231686A (en) Graphic painting-out method
JPS6081604A (en) Method for specifying pattern of numerical control tape
JP3681240B2 (en) Three-dimensional shape display method and three-dimensional CAD system using the method
JPH0143354B2 (en)
JPS61265677A (en) System for calculating and processing hidden outline and hidden surface
JPH0139155B2 (en)
JPH02178885A (en) Method for finding two-dimensional projection figure of three-dimensional shape model
JPH036675A (en) Pattern painting out device
JPH05120430A (en) Crossing judgment and intersection calculation system for polygon and straight line
JPH10207932A (en) Component placement system
JPH0589250A (en) System for painting out two-dimensional figure