JP3414478B2 - Projection area calculation method using CAD - Google Patents

Projection area calculation method using CAD

Info

Publication number
JP3414478B2
JP3414478B2 JP03714794A JP3714794A JP3414478B2 JP 3414478 B2 JP3414478 B2 JP 3414478B2 JP 03714794 A JP03714794 A JP 03714794A JP 3714794 A JP3714794 A JP 3714794A JP 3414478 B2 JP3414478 B2 JP 3414478B2
Authority
JP
Japan
Prior art keywords
plane
intersections
outline
projected
projection
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.)
Expired - Fee Related
Application number
JP03714794A
Other languages
Japanese (ja)
Other versions
JPH07249053A (en
Inventor
茂久 藤田
善史 鮫島
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.)
Honda Motor Co Ltd
Original Assignee
Honda Motor Co Ltd
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 Honda Motor Co Ltd filed Critical Honda Motor Co Ltd
Priority to JP03714794A priority Critical patent/JP3414478B2/en
Publication of JPH07249053A publication Critical patent/JPH07249053A/en
Application granted granted Critical
Publication of JP3414478B2 publication Critical patent/JP3414478B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】本発明は、CAD(Computer Aid
ed Design )において、三次元図形データを二次元平面
に投影した場合のCADを用いた投影面積算出方法に関
する。 【0002】 【従来の技術】近年、CADにより設計を行うことが広
汎に普及している。このCADによる設計中に、三次元
図形データを二次元平面に投影して、その投影された図
形データの面積を算出する処理が行われることがある。 【0003】例えば、自動車製造業界では、CAD上で
三次元のワイヤフレームモデルとして設計された車体の
モデルにおいて、設計されたウィンカの有効発光面積を
検討する際、前記ウィンカが所定方向から規定の面積以
上に見えるか否かを確認している。その場合には、前記
ウィンカの三次元ワイヤフレームモデルを所定方向の平
面に投影し、その面積を求めることにより有効発光面積
の確認が行われる。 【0004】 【発明が解決しようとする課題】しかしながら、CAD
上で三次元ワイヤフレームモデルを二次元投影面に投影
した場合には、交差した多数の曲線が前記投影平面上に
存在することになり、前記投影された図形データの外形
線を自動的に特定することが難しい。したがって、オペ
レータが外形線を構成する線を特定し、その他の線を消
去するという煩雑な作業を行わなければならなかった。 【0005】本発明は、この種の問題を解決するために
なされたものであって、三次元図形データを平面に投影
した場合に、投影された図形データから外形線を自動的
に作成し、その外形線に囲繞された面積を算出できるC
ADを用いた投影面積算出方法を提供することを目的と
する。 【0006】 【課題を解決するための手段】前記の目的を達成するた
めに、本発明は、CADにおいて、三次元図形データを
任意の平面に投影して、投影された像の面積を求める投
影面積算出方法であって、投影する三次元図形データを
特定する過程と、投影平面を設定する過程と、前記三次
元図形データを前記投影平面の法線方向から当該投影平
面に平行投影する過程と、前記投影平面に投影された図
形データの中、XYZ座標系でX、Y、Zそれぞれの最
大値Xmax 、Ymax 、Zmax と最小値Xmin 、Ymin 、
Zmin を求める過程と、前記最大値で構成される点(X
max ,Ymax ,Zmax )と最小値で構成される点(Xmi
n ,Ymin ,Zmin )とを結ぶ線分を設定する過程と、
前記線分に垂直な複数の直交平面を所定間隔離間させて
前記二点間に設定する過程と、前記直交平面と投影され
た図形データとの交点を求め、各直交平面上にある交点
の中、双方の離間距離が最も長い二つの交点を残し、他
の交点を消去する過程と、前記残された交点を除いて投
影された図形データを消去する過程と、直交平面に残存
する交点が隣接する直交平面の二つの交点の中、距離が
短い方の交点と接続させることにより外形線を作成する
過程と、外形線に囲繞された部分の面積を求める過程
と、を備えることを特徴とする。 【0007】 【作用】本発明に係るCADを用いた投影面積算出方法
では、投影される三次元図形データと投影平面とを特定
して前記図形データを前記投影平面の法線方向から当該
投影平面に投影し、投影された図形データからXYZ座
標系におけるX、Y、Zそれぞれの最大値Xmax 、Yma
x 、Zmax と最小値Xmin 、Ymin 、Zmin を求め、前
記最大値からなる点(Xmax ,Ymax ,Zmax )と最小
値からなる点(Xmin ,Ymin ,Zmin )を設定して両
者の点を結ぶ線分を設定し、前記線分に直交する直交平
面を所定間隔離間させて二点間に設ける。さらに、前記
直交平面と投影された図形データとの交点を求め、各直
交平面中の交点の中、最も相互に離間している二つの交
点のみを残し、他の交点を消去する。これは、実質的に
前記投影平面上に所定間隔離間させて平行線を作成し、
投影平面上に投影された図形データと前記平行線との交
点を求め、前記交点の中、外形線に属する交点のみを選
択していることになる。 【0008】このようにして外形線を構成する交点のみ
を選択した後で、前記交点を除く図形データを消去す
る。残存している交点が、隣接する直交平面の交点の
中、距離が短い方の交点と接続していくことにより投影
平面上に外形線が作成される。その後で外形線で囲繞さ
れる部分の面積を求める。 【0009】 【実施例】本発明に係るCADを用いた投影面積算出方
法について、好適な実施例を挙げ、添付の図面を参照し
ながら以下詳細に説明する。 【0010】本実施例においては、先ずCAD装置につ
いて説明し、次に本方法の概要を説明し、最後にその要
部を詳細に説明する。 【0011】CAD装置10は、図1に示すように、図
形処理を行うCPU12と、図形データを記憶している
ハードディスク等からなる外部記憶装置14と、内部の
メモリ16と、図形、数値等を表示するCRTディスプ
レイ18と、数値を入力するキーボード20と、ファン
クションキー等の図形処理の指示を行う指示入力装置2
2とからなる。 【0012】このように構成されるCAD装置10にお
ける投影面積算出方法について、以下、フローチャート
および図面を参照して説明する。 【0013】先ず、図2に示すフローチャートおよび図
4、図5を参照して概略を説明する。 【0014】前記CAD装置10は、指示入力装置22
の操作により起動後、CPU12から投影面積算出プロ
グラムを読み出す。続いて、外部記憶装置14から三次
元図形データ、ここでは三次元ワイヤフレームモデルを
CPU12に読み込む(ステップS1)。次に、キーボ
ード20あるいは指示入力装置22からの操作入力によ
り投影する投影平面P(図4参照)を指定する(ステッ
プS2)。さらに、キーボード20あるいは指示入力装
置22からの操作入力により前記モデルの中、投影面積
を求める曲線群C1(図4参照)を指定する(ステップ
S3)。指示入力装置22からの指示により投影平面P
の法線方向から前記曲線群C1を当該投影平面Pに平行
投影し、平面上に投影された曲線群C2(図5参照)の
外形線を求める(ステップS4)。前記外形線で囲まれ
た部分の面積を求め、CRTディスプレイ18に表示す
る(ステップS5)。 【0015】前記ステップS4の外形線を求める過程を
図3〜図9を参照して詳述する。 【0016】指示入力装置22において投影面積算出を
指示するキー等を操作することにより、図4に示すよう
に、三次元ワイヤフレームモデルからなる曲線群C1を
投影平面Pの法線方向から当該投影平面Pに平行投影す
る(ステップS4−1)。 【0017】投影平面P上に投影された曲線群C2を図
5に示す。前記曲線群C2を構成する点の中、XYZ座
標系におけるX成分、Y成分、Z成分それぞれの最大値
Xmax 、Ymax 、Zmax 、最小値Xmin 、Ymin 、Zmi
n を求める(ステップS4−2)。続いて、図5に示す
ように、前記最大値から構成される点q1(Xmax ,Y
max ,Zmax )と最小値から構成される点q2(Xmin
,Ymin ,Zmin )を求め、前記2点を結ぶ線分hを
設定する(ステップS4−3)。前記線分hに直交する
直交平面P1〜Pnを所定間隔離間させて前記2点間に
設定する(ステップS4−4)(図6参照)。 【0018】この一連の処理において、直交平面P1〜
Pnを点q1、q2間に複数設定しているが、前記点q
1、q2がXYZ座標系におけるX成分、Y成分、Z成
分それぞれの最大値Xmax 、Ymax 、Zmax 、最小値X
min 、Ymin 、Zmin から構成されているため、前記直
交平面P1〜Pnが曲線群C2よりも広い範囲に設定さ
れることになる。 【0019】前記直交平面P1〜Pnと曲線群C2との
交点iを求め、それぞれの直交平面において最も離間し
た交点iを二点選択して他を消去する過程を前記直交平
面P1〜Pnにわたって繰り返し行う(ステップS4−
5〜S4−7)。例えば、直交平面Pm(1<m<n)
では、図7に示すように、曲線群C2を構成する曲線c
1〜c5が直交平面Pmと交点i1〜i5を形成してお
り、前記交点i1〜i5の中、相互に最も離間している
i1とi5のみを選択して、その他の交点i2〜i4を
消去する。このようにして選択された交点i1、i5を
それぞれSm1、Sm2とする。これは、実質的に外形
線Lを構成している交点のみを選択していることにな
る。 【0020】なお、本実施例では、直交平面P1、Pn
では曲線群C2との交点が存在しなかったものとする。 【0021】さらに、各直交平面P2〜Pn−1で選択
された交点Sk1、Sk2(2≦k≦n−1)のみを残
して曲線群C2を消去する(ステップS4−8)。この
結果、図8に示すような交点Sk1、Sk2の群が残
る。各交点Sk1、Sk2の図形データが直交平面P2
〜Pn−1と関連付けられてメモリ16に格納される。 【0022】以下、前記交点Sk1、Sk2を接続して
外形線Lを作成する(ステップS4−9)(図9参
照)。このステップS4−9について、図10に示すフ
ローチャートおよび図8を参照して以下説明する。 【0023】先ずCPU12は、どの直交平面Pkであ
るかを示すkを1に、外形線Lの始まりあるいは終わり
を示すjを0に、それぞれ初期設定する(ステップS4
−9−1)。 【0024】次に、メモリ16から直交平面Pkに関連
する交点Sk1、Sk2の図形データを読み出し、当該
直交平面Pkに交点Sk1、Sk2が存在するか否かを
判定する(ステップS4−9−2)。本実施例では、先
ず、直交平面P1について判定され、当該直交平面P1
には交点が存在しないため判定はNOとなり、続いてj
=1か否かを判定する(ステップS4−9−3)。ここ
では、直交平面Pkが、外形線Lを構成している交点S
k−11、Sk−12を有する直交平面Pk−1の次の
交点の無い直交平面であるか否かを判定している。前記
直交平面P1はj=0≠1、つまりNOであるため、k
をインクリメント(ステップS4−9−4)してステッ
プS4−9−2以降の処理を繰り返す。 【0025】続いて、k=2、すなわち、直交平面P2
には交点S21、S22が存在するため、ステップS4
−9−2においてYESとなり、j=0であるか否かを
判定する(ステップS4−9−5)。ここでは、外形線
Lを構成する交点Sk1、Sk2を有する最初の直交平
面Pkであるか否かを判定している。直交平面P2は、
最初の平面(J=0)であるから交点S21と交点S2
2を接続する(ステップS4−9−6)(図8の実線参
照)。この後、kとjをそれぞれインクリメント(ステ
ップS4−9−7)してステップS4−9−2以降の処
理を繰り返す。 【0026】直交平面P3には、交点S31、S32が
存在し(ステップS4−9−2)、外形線を構成する最
初の平面でない(j=1≠0)(ステップS4−9−
5)ため、交点S31、S32が一つ前に処理された直
交平面P2の交点S21、S22とそれぞれ距離が短い
方の交点と接続する(ステップS4−9−8)。すなわ
ち、交点S21と交点S31、交点22と交点32が接
続される(図8の破線参照)。 【0027】以下、kがnになるまでは、kをインクリ
メントしてステップS4−9−2以降の処理を繰り返す
(ステップS4−9−9、ステップS4−9−10)。 【0028】もし、直交平面Pnまで交点Sn1、Sn
2が存在する場合には、交点Sn1と交点Sn2を接続
して外形線Lの作成を終了する(ステップS4−9−1
1)。 【0029】本実施例では、直交平面Pn−1まで各直
交平面に交点が存在するため、前記交点をそれぞれ接続
する。しかし、直交平面Pnには交点が存在しないた
め、ステップS4−9−3に進み、J=1であるか否か
が判定される。J=1、すなわち、外形線Lを構成する
交点Sn−11、Sn−12を有する直交平面Pn−1
の次の交点の無い最初の直交平面Pnであるため、図8
に二点鎖線で示すように、一つ前に処理された直交平面
Pn−1上の交点Sn−11、Sn−12を接続して外
形線L(図9参照)の作成を終了する(ステップS4−
9−12)。 【0030】このようにして求められた外形線Lに囲繞
された部分の面積を計算する。以下、図11〜図14を
参照して説明する。 【0031】先ず、図11に示すように、投影平面P上
に座標系U−Vを設定し、前記外形線Lで囲繞された領
域におけるVmax 、Vmin から平均値Vm =(Vmax +
Vmin )/2を求める。続いて、V=Vm の直線を引
き、前記直線と外形線Lとの交点T1、T2を求める。 【0032】次に、前記交点T1、T2のUの値U1、
U2から平均値Um =(U1+U2)/2を求め、図1
2に示すように、中心C(Um ,Vm )を設定する。 【0033】さらに、図13に示すように、前記投影平
面P上で中心Cを通過する直線Mを所定角度、例えば1
°間隔で引く。 【0034】最後に、前記直線Mと外形線Lとの交点T
を順次求め、隣接する交点Tk−1、Tkと前記中心C
で形成される三角形の面積を求めていく(図14参
照)。全ての三角形の面積を求め、その総和を計算する
ことにより外形線Lによって囲繞される領域の面積を求
め、CRTディスプレイ18に表示する。 【0035】本実施例に係るCADを用いた投影面積算
出方法では、投影する三次元図形データである曲線群C
1と投影平面Pを特定し、投影面積算出をCAD装置1
0に指示すれば、自動的に投影された曲線群C2の外形
線Lを作成し、前記外形線Lに囲繞された部分の面積を
自動的に算出する。したがって、オペレータが曲線群C
2の外形線Lを特定することが不要となり、作業効率が
向上する。 【0036】また、本方法では、投影された曲線群C2
と直交平面P1〜Pnとの交点iから外形線Lを求めて
いるが、前記直交平面P1〜Pnが曲線群C2のXYZ
座標系におけるX、Y、Zそれぞれの最大値、最小値か
らなる点q1、q2の間に設定されているため、前記曲
線群C2の両端部よりも広い範囲に直交平面P1〜Pn
が設定される。この結果、外形線Lを構成する交点iが
全て検出され、精度良く外形線Lが作成される。 【0037】 【発明の効果】本発明に係るCADを用いた投影面積算
出方法によれば、以下の効果が得られる。 【0038】すなわち、本方法では、CAD装置に投影
される三次元図形データ、投影平面を特定しておいて投
影面積算出を命ずれば、自動的に投影された図形データ
の外形線を作成し、投影面積が算出される。したがっ
て、投影された三次元図形データの外形線をオペレータ
等が特定する等の煩雑な作業から解放され、作業効率が
向上する効果が得られる。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a CAD (Computer Aid)
ed Design), a projection area calculation method using CAD when three-dimensional graphic data is projected onto a two-dimensional plane. 2. Description of the Related Art In recent years, designing by CAD has become widespread. During the CAD design, a process of projecting the three-dimensional graphic data onto a two-dimensional plane and calculating the area of the projected graphic data may be performed. For example, in the automobile manufacturing industry, when examining the effective light emitting area of a designed blinker in a vehicle body model designed as a three-dimensional wire frame model on CAD, the blinker has a predetermined area from a predetermined direction. I'm checking if it looks like this. In this case, the three-dimensional wire frame model of the blinker is projected on a plane in a predetermined direction, and the area of the three-dimensional wire frame model is obtained to confirm the effective light emitting area. [0004] However, CAD
When the three-dimensional wireframe model is projected on the two-dimensional projection plane above, many intersecting curves exist on the projection plane, and the outline of the projected graphic data is automatically specified. Difficult to do. Therefore, the operator has to perform a complicated operation of specifying the lines constituting the outline and erasing the other lines. The present invention has been made to solve this kind of problem. When three-dimensional graphic data is projected onto a plane, an outline is automatically created from the projected graphic data. C that can calculate the area surrounded by the outline
It is an object to provide a projection area calculation method using AD. SUMMARY OF THE INVENTION In order to achieve the above object, the present invention relates to a CAD system which projects three-dimensional graphic data onto an arbitrary plane in CAD to obtain an area of a projected image. An area calculating method, wherein a step of specifying three-dimensional graphic data to be projected, a step of setting a projection plane, and a step of parallel projecting the three-dimensional graphic data from the normal direction of the projection plane to the projection plane. , In the graphic data projected on the projection plane, the maximum values Xmax, Ymax, Zmax and the minimum values Xmin, Ymin,
Zmin and a point (X
max, Ymax, Zmax) and a point (Xmi
n, Ymin, Zmin); and
A step of setting a plurality of orthogonal planes perpendicular to the line segment between the two points by separating them by a predetermined distance, and finding an intersection between the orthogonal plane and the projected graphic data; Leaving the two intersections with the longest separation distance therebetween and erasing the other intersections; erasing the projected graphic data excluding the remaining intersections; and intersecting the intersections remaining on the orthogonal plane with each other. A process of creating an outline by connecting to an intersection having a shorter distance between two intersections of the orthogonal plane, and a process of obtaining an area of a portion surrounded by the outline. . In the projection area calculation method using CAD according to the present invention, the three-dimensional figure data to be projected and the projection plane are specified, and the figure data is converted from the normal direction of the projection plane to the projection plane. And the maximum values Xmax, Yma of X, Y, Z in the XYZ coordinate system from the projected graphic data.
x, Zmax and minimum values Xmin, Ymin, Zmin are determined, a point (Xmax, Ymax, Zmax) consisting of the maximum value and a point (Xmin, Ymin, Zmin) consisting of the minimum value are set, and a line connecting both points is set. An interval is set, and an orthogonal plane orthogonal to the line segment is provided between two points at a predetermined interval. Further, an intersection between the orthogonal plane and the projected graphic data is obtained, and only two of the intersections in each orthogonal plane that are most separated from each other are left, and other intersections are deleted. This creates parallel lines substantially spaced apart by a predetermined distance on the projection plane,
The intersection between the graphic data projected on the projection plane and the parallel line is obtained, and only the intersection belonging to the outline is selected from the intersections. After selecting only the intersections forming the outline in this way, the graphic data excluding the intersections is deleted. The remaining intersection is connected to the intersection of the shorter distance among the intersections of the adjacent orthogonal planes, so that an outline is created on the projection plane. Thereafter, the area of the portion surrounded by the outline is determined. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A projection area calculation method using a CAD according to the present invention will be described in detail below with reference to the accompanying drawings. In this embodiment, a CAD apparatus will be described first, then an outline of the method will be described, and finally the main part will be described in detail. As shown in FIG. 1, the CAD apparatus 10 includes a CPU 12 for performing graphic processing, an external storage device 14 such as a hard disk for storing graphic data, an internal memory 16, a graphic and numerical values. CRT display 18 for displaying, keyboard 20 for inputting numerical values, and instruction input device 2 for instructing graphic processing such as function keys
Consists of two. A method of calculating a projected area in the CAD apparatus 10 having the above-described configuration will be described below with reference to flowcharts and drawings. First, the outline will be described with reference to the flowchart shown in FIG. 2 and FIGS. 4 and 5. The CAD device 10 includes an instruction input device 22
After the start-up operation, the CPU 12 reads the projection area calculation program from the CPU 12. Subsequently, three-dimensional graphic data, here, a three-dimensional wireframe model, is read from the external storage device 14 into the CPU 12 (step S1). Next, a projection plane P (see FIG. 4) to be projected is designated by an operation input from the keyboard 20 or the instruction input device 22 (step S2). Further, a curve group C1 (see FIG. 4) for obtaining a projection area is designated in the model by an operation input from the keyboard 20 or the instruction input device 22 (step S3). The projection plane P is designated by an instruction from the instruction input device 22.
From the normal direction, the curve group C1 is projected in parallel to the projection plane P, and the outline of the curve group C2 (see FIG. 5) projected on the plane is obtained (step S4). The area of the portion surrounded by the outline is determined and displayed on the CRT display 18 (step S5). The process of obtaining the outline in step S4 will be described in detail with reference to FIGS. By operating a key or the like for instructing projection area calculation in the instruction input device 22, a curve group C1 composed of a three-dimensional wire frame model is projected from the normal direction of the projection plane P as shown in FIG. Parallel projection is performed on the plane P (step S4-1). FIG. 5 shows a curve group C2 projected on the projection plane P. Among the points constituting the curve group C2, the maximum values Xmax, Ymax, Zmax and the minimum values Xmin, Ymin, Zmi of the X, Y, and Z components in the XYZ coordinate system, respectively.
n is obtained (step S4-2). Subsequently, as shown in FIG. 5, a point q1 (Xmax, Y
max, Zmax) and a point q2 (Xmin
, Ymin, Zmin), and a line segment h connecting the two points is set (step S4-3). Orthogonal planes P1 to Pn orthogonal to the line segment h are set to be separated from each other by a predetermined distance (step S4-4) (see FIG. 6). In this series of processing, the orthogonal planes P1 to P1
A plurality of Pn are set between the points q1 and q2.
1, q2 are the maximum values Xmax, Ymax, Zmax, and the minimum value X of the X, Y, and Z components in the XYZ coordinate system, respectively.
Since it is composed of min, Ymin and Zmin, the orthogonal planes P1 to Pn are set in a wider range than the curve group C2. The process of obtaining the intersection point i between the orthogonal planes P1 to Pn and the curve group C2, selecting the two most distant intersection points i in each orthogonal plane, and erasing the others is repeated over the orthogonal planes P1 to Pn. Perform (Step S4-
5 to S4-7). For example, the orthogonal plane Pm (1 <m <n)
Then, as shown in FIG. 7, the curve c constituting the curve group C2
1 to c5 form intersections i1 to i5 with the orthogonal plane Pm, and among the intersections i1 to i5, only i1 and i5 which are most separated from each other are selected, and the other intersections i2 to i4 are deleted. I do. The intersections i1 and i5 selected in this way are defined as Sm1 and Sm2, respectively. This means that only the intersections that substantially form the outline L are selected. In this embodiment, the orthogonal planes P1, Pn
It is assumed that there is no intersection with the curve group C2. Further, the curve group C2 is deleted except for the intersection points Sk1 and Sk2 (2 ≦ k ≦ n−1) selected on the orthogonal planes P2 to Pn−1 (step S4-8). As a result, a group of intersections Sk1 and Sk2 as shown in FIG. 8 remains. The graphic data of each intersection Sk1 and Sk2 is an orthogonal plane P2
PPn−1 and stored in the memory 16. Hereinafter, an outline L is created by connecting the intersections Sk1 and Sk2 (step S4-9) (see FIG. 9). Step S4-9 will be described below with reference to the flowchart shown in FIG. 10 and FIG. First, the CPU 12 initializes k indicating the orthogonal plane Pk to 1 and j indicating the start or end of the outline L to 0 (step S4).
-9-1). Next, the graphic data of the intersection points Sk1 and Sk2 related to the orthogonal plane Pk is read from the memory 16 and it is determined whether or not the intersection points Sk1 and Sk2 exist on the orthogonal plane Pk (step S4-9-2). ). In the present embodiment, first, the determination is made on the orthogonal plane P1, and the orthogonal plane P1 is determined.
Has no intersection, the determination is NO, and then j
= 1 is determined (step S4-9-3). Here, the orthogonal plane Pk is the intersection S
It is determined whether or not the plane is an orthogonal plane having no intersection next to the orthogonal plane Pk-1 having k-11 and Sk-12. Since the orthogonal plane P1 is j = 0 ≠ 1, that is, NO, k
Is incremented (step S4-9-4), and the processing from step S4-9-2 is repeated. Subsequently, k = 2, that is, the orthogonal plane P2
Since there are intersections S21 and S22 in step S4,
YES is determined in -9-2, and it is determined whether or not j = 0 (step S4-9-5). Here, it is determined whether or not it is the first orthogonal plane Pk having the intersections Sk1 and Sk2 forming the outline L. The orthogonal plane P2 is
Since it is the first plane (J = 0), the intersection S21 and the intersection S2
2 (step S4-9-6) (see the solid line in FIG. 8). Thereafter, k and j are each incremented (step S4-9-7), and the processing from step S4-9-2 is repeated. The intersection points S31 and S32 exist on the orthogonal plane P3 (step S4-9-2), and are not the first planes constituting the outline (j = 1 ≠ 0) (step S4-9-).
5) Therefore, the intersections S31 and S32 are connected to the intersections S21 and S22 of the orthogonal plane P2 that have been processed immediately before and the intersections each having a shorter distance (step S4-9-8). That is, the intersection S21 and the intersection S31 and the intersection 22 and the intersection 32 are connected (see the broken line in FIG. 8). Thereafter, until k becomes n, k is incremented and the processing of step S4-9-2 and thereafter is repeated (step S4-9-9, step S4-9-10). If the intersection points Sn1 and Sn reach the orthogonal plane Pn
If there is an intersection 2, the intersection Sn1 and the intersection Sn2 are connected, and the creation of the outline L is completed (step S4-9-1).
1). In this embodiment, since there are intersections on each orthogonal plane up to the orthogonal plane Pn-1, the intersections are connected. However, since there is no intersection on the orthogonal plane Pn, the process proceeds to step S4-9-3, and it is determined whether J = 1. J = 1, that is, an orthogonal plane Pn-1 having intersections Sn-11 and Sn-12 forming the outline L
Since this is the first orthogonal plane Pn without the next intersection,
As shown by a two-dot chain line, the intersections Sn-11 and Sn-12 on the orthogonal plane Pn-1 that have been processed immediately before are connected to complete the creation of the outline L (see FIG. 9). S4-
9-12). The area of the portion surrounded by the outline L thus obtained is calculated. Hereinafter, description will be made with reference to FIGS. First, as shown in FIG. 11, a coordinate system UV is set on a projection plane P, and an average value Vm = (Vmax +) is obtained from Vmax and Vmin in a region surrounded by the outline L.
Vmin) / 2. Subsequently, a straight line of V = Vm is drawn, and intersections T1 and T2 between the straight line and the outline L are determined. Next, the values U1, U of the intersections T1, T2 are
An average value Um = (U1 + U2) / 2 is obtained from U2, and FIG.
As shown in FIG. 2, a center C (Um, Vm) is set. Further, as shown in FIG. 13, a straight line M passing through the center C on the projection plane P is formed at a predetermined angle, for example, 1 °.
Pull at ° intervals. Finally, the intersection T between the straight line M and the outline L
Are sequentially obtained, and the adjacent intersections Tk-1 and Tk and the center C
The area of the triangle formed by is calculated (see FIG. 14). The area of the area surrounded by the outline L is obtained by calculating the area of all the triangles and calculating the sum thereof, and displays the area on the CRT display 18. In the projection area calculation method using CAD according to the present embodiment, a curve group C which is three-dimensional graphic data to be projected is used.
1 and the projection plane P are specified, and the projection area calculation is performed by the CAD apparatus 1.
If 0 is indicated, an outline L of the automatically projected curve group C2 is created, and the area of the portion surrounded by the outline L is automatically calculated. Therefore, the operator sets the curve group C
It is not necessary to specify the second outline L, and the work efficiency is improved. In the present method, the projected curve group C2
The outline L is obtained from the intersection point i of the curve plane C1 and the orthogonal planes P1 to Pn.
Since it is set between the points q1 and q2 each consisting of the maximum value and the minimum value of X, Y and Z in the coordinate system, the orthogonal planes P1 to Pn cover a wider range than both ends of the curve group C2.
Is set. As a result, all the intersections i that form the outline L are detected, and the outline L is created with high accuracy. According to the projection area calculation method using CAD according to the present invention, the following effects can be obtained. That is, in this method, if the three-dimensional figure data to be projected on the CAD apparatus and the projection plane are specified and the projection area calculation is ordered, the outline of the projected figure data is automatically created. , The projected area is calculated. Therefore, the operator is freed from troublesome work such as specifying the outline of the projected three-dimensional graphic data by an operator or the like, and an effect of improving work efficiency is obtained.

【図面の簡単な説明】 【図1】本発明に係る一実施例におけるCAD装置の概
略構成図である。 【図2】本発明に係る一実施例における投影面積算出方
法を示すフローチャートである。 【図3】本発明に係る一実施例における投影面積算出方
法の要部を示すフローチャートである。 【図4】本発明に係る一実施例の投影面積算出方法にお
いて、投影された曲線群の外形線作成方法を示す説明図
である。 【図5】本発明に係る一実施例の投影面積算出方法にお
いて、投影された曲線群の外形線作成方法を示す説明図
である。 【図6】本発明に係る一実施例の投影面積算出方法にお
いて、投影された曲線群の外形線作成方法を示す説明図
である。 【図7】本発明に係る一実施例の投影面積算出方法にお
いて、投影された曲線群の外形線作成方法を示す説明図
である。 【図8】本発明に係る一実施例の投影面積算出方法にお
いて、投影された曲線群の外形線作成方法を示す説明図
である。 【図9】本発明に係る一実施例の投影面積算出方法にお
いて、投影された曲線群の外形線作成方法を示す説明図
である。 【図10】本発明に係る一実施例の投影面積算出方法に
おいて、外形線作成方法を示すフローチャートである。 【図11】本発明に係る一実施例の投影面積算出方法に
おいて、面積算出方法を示す説明図である。 【図12】本発明に係る一実施例の投影面積算出方法に
おいて、面積算出方法を示す説明図である。 【図13】本発明に係る一実施例の投影面積算出方法に
おいて、面積算出方法を示す説明図である。 【図14】本発明に係る一実施例の投影面積算出方法に
おいて、面積算出方法を示す説明図である。 【符号の説明】 10…CAD装置 12…CPU 14…外部記憶装置 16…メモリ 18…CRTディスプレイ 20…キーボー
ド 22…指示入力装置 C1、C2…曲
線群 L…外形線 P…投影平面
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic configuration diagram of a CAD apparatus according to an embodiment of the present invention. FIG. 2 is a flowchart illustrating a projection area calculation method according to an embodiment of the present invention. FIG. 3 is a flowchart showing a main part of a projection area calculation method according to one embodiment of the present invention. FIG. 4 is an explanatory diagram showing a method for creating an outline of a projected curve group in the projection area calculation method according to one embodiment of the present invention. FIG. 5 is an explanatory diagram showing a method for creating an outline of a projected curve group in the projection area calculation method according to one embodiment of the present invention. FIG. 6 is an explanatory diagram showing a method of creating an outline of a projected curve group in the projection area calculation method according to one embodiment of the present invention. FIG. 7 is an explanatory diagram showing a method for creating an outline of a projected curve group in the projection area calculation method according to one embodiment of the present invention. FIG. 8 is an explanatory diagram showing a method for creating an outline of a projected curve group in the projection area calculation method according to one embodiment of the present invention. FIG. 9 is an explanatory diagram showing a method of creating an outline of a projected curve group in the projection area calculation method according to one embodiment of the present invention. FIG. 10 is a flowchart illustrating an outline creation method in the projection area calculation method according to one embodiment of the present invention. FIG. 11 is an explanatory diagram showing an area calculation method in the projection area calculation method according to one embodiment of the present invention. FIG. 12 is an explanatory diagram showing an area calculation method in the projection area calculation method according to one embodiment of the present invention. FIG. 13 is an explanatory diagram showing an area calculation method in the projection area calculation method according to one embodiment of the present invention. FIG. 14 is an explanatory diagram showing an area calculation method in the projection area calculation method according to one embodiment of the present invention. [Description of Signs] 10 CAD apparatus 12 CPU 14 External storage device 16 Memory 18 CRT display 20 Keyboard 22 Instruction input device C1, C2 Curve group L Outline line P Projection plane

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 17/50 G06T 1/00 G06T 7/60 250 JICSTファイル(JOIS)────────────────────────────────────────────────── ─── Continued on the front page (58) Field surveyed (Int. Cl. 7 , DB name) G06F 17/50 G06T 1/00 G06T 7/60 250 JICST file (JOIS)

Claims (1)

(57)【特許請求の範囲】 【請求項1】CADにおいて、三次元図形データを任意
の平面に投影して、投影された像の面積を求める投影面
積算出方法であって、 投影する三次元図形データを特定する過程と、 投影平面を設定する過程と、 前記三次元図形データを前記投影平面の法線方向から当
該投影平面に平行投影する過程と、 前記投影平面に投影された図形データの中、XYZ座標
系でX、Y、Zそれぞれの最大値Xmax 、Ymax 、Zma
x と最小値Xmin 、Ymin 、Zmin を求める過程と、 前記最大値で構成される点(Xmax ,Ymax ,Zmax )
と最小値で構成される点(Xmin ,Ymin ,Zmin )と
を結ぶ線分を設定する過程と、 前記線分に垂直な複数の直交平面を所定間隔離間させて
前記二点間に設定する過程と、 前記直交平面と投影された図形データとの交点を求め、
各直交平面上にある交点の中、双方の離間距離が最も長
い二つの交点を残し、他の交点を消去する過程と、 前記残された交点を除いて投影された図形データを消去
する過程と、 直交平面に残存する交点が隣接する直交平面の二つの交
点の中、距離が短い方の交点と接続させることにより外
形線を作成する過程と、 外形線に囲繞された部分の面積を求める過程と、 を備えることを特徴とするCADを用いた投影面積算出
方法。
(1) A projection area calculation method for projecting three-dimensional graphic data onto an arbitrary plane in a CAD, and calculating an area of a projected image. A step of specifying figure data; a step of setting a projection plane; a step of projecting the three-dimensional figure data parallel to the projection plane from a normal direction of the projection plane; and a step of drawing the figure data projected on the projection plane. Medium, maximum values Xmax, Ymax, Zma of X, Y, Z in the XYZ coordinate system
x and the process of obtaining the minimum values Xmin, Ymin, Zmin, and the points (Xmax, Ymax, Zmax) composed of the maximum values
Setting a line segment connecting the point (Xmin, Ymin, Zmin) constituted by the minimum value and a step of setting a plurality of orthogonal planes perpendicular to the line segment at a predetermined distance from each other. And finding an intersection of the orthogonal plane and the projected graphic data,
Of the intersections on each orthogonal plane, leaving the two intersections with the longest separation distance between them, erasing the other intersections, and erasing the projected graphic data excluding the remaining intersections The process of creating an outline by connecting the intersection remaining on the orthogonal plane to the intersection of the shorter distance between the two intersections of the adjacent orthogonal plane, and the process of determining the area of the part surrounded by the outline And a projection area calculation method using CAD.
JP03714794A 1994-03-08 1994-03-08 Projection area calculation method using CAD Expired - Fee Related JP3414478B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03714794A JP3414478B2 (en) 1994-03-08 1994-03-08 Projection area calculation method using CAD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03714794A JP3414478B2 (en) 1994-03-08 1994-03-08 Projection area calculation method using CAD

Publications (2)

Publication Number Publication Date
JPH07249053A JPH07249053A (en) 1995-09-26
JP3414478B2 true JP3414478B2 (en) 2003-06-09

Family

ID=12489506

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03714794A Expired - Fee Related JP3414478B2 (en) 1994-03-08 1994-03-08 Projection area calculation method using CAD

Country Status (1)

Country Link
JP (1) JP3414478B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108061540B (en) * 2017-12-12 2020-10-16 北斗航天汽车(北京)有限公司 Method and device for calculating maximum projection area of part

Also Published As

Publication number Publication date
JPH07249053A (en) 1995-09-26

Similar Documents

Publication Publication Date Title
JP4083238B2 (en) Progressive mesh adaptive subdivision method and apparatus
JP3195498B2 (en) Method and apparatus for creating three-dimensional shape
JP4237806B2 (en) Progressive mesh adaptive subdivision method and apparatus
JP2993528B2 (en) Text management and restoration method
US6337685B2 (en) Three-dimensional model generation system, three-dimensional model generation method, and recording medium storing a three-dimensional model generation program
JPH0765201A (en) Device and method for shape modeling
JP4342193B2 (en) Three-dimensional CAD system, partial reprojection method, and computer program
JP3650355B2 (en) Computer system, method and computer program for accelerating rendering of geometric models
JP3265879B2 (en) 3D orthogonal grid data generator
CN113781642A (en) Three-dimensional model multi-level LOD generation method based on face reduction algorithm
CN114429535A (en) Smooth cutting method and device for triangular mesh curved surface
JP2837584B2 (en) How to create terrain data
CN113744401A (en) Terrain splicing method and device, electronic equipment and storage medium
JP3414478B2 (en) Projection area calculation method using CAD
CN116991795B (en) Automatic light-weight processing method and system for three-dimensional model
JP3143464B2 (en) Apparatus and method for creating three-dimensional model
JP4340397B2 (en) Triangle mesh simplification device and program
JP3305395B2 (en) Figure division device
JP2001084408A (en) Method and device for processing three-dimensional data and recording medium
JPH04360275A (en) Graphic data input system
JPH0991332A (en) Method and device for generating and correcting cross-section data
JP2919194B2 (en) CAD system
JP3289230B2 (en) Generator of finite element mesh distribution
JP2002328958A (en) Mesh generation method, program, recording medium, and mesh generation system
JP2008186054A (en) Projection method for cad system, projection program for cad system, and cad system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080404

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090404

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090404

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100404

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110404

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees