JPH06149943A - Device and method for preparing object data from perspective drawing - Google Patents

Device and method for preparing object data from perspective drawing

Info

Publication number
JPH06149943A
JPH06149943A JP4296775A JP29677592A JPH06149943A JP H06149943 A JPH06149943 A JP H06149943A JP 4296775 A JP4296775 A JP 4296775A JP 29677592 A JP29677592 A JP 29677592A JP H06149943 A JPH06149943 A JP H06149943A
Authority
JP
Japan
Prior art keywords
plane
view
perspective
cross
object data
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.)
Granted
Application number
JP4296775A
Other languages
Japanese (ja)
Other versions
JP3137776B2 (en
Inventor
Hiroshi Hashimoto
博 橋本
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.)
Nippon Steel Corp
Original Assignee
Nippon Steel 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 Nippon Steel Corp filed Critical Nippon Steel Corp
Priority to JP04296775A priority Critical patent/JP3137776B2/en
Priority to EP19930117970 priority patent/EP0596518A3/en
Publication of JPH06149943A publication Critical patent/JPH06149943A/en
Application granted granted Critical
Publication of JP3137776B2 publication Critical patent/JP3137776B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To easily and speedily prepare the object data of a three-dimensional object in any arbitrary shape by projecting a cross-sectional line onto a plane with a visual point as the center and acquiring the object data from the projected image. CONSTITUTION:As a perspective drawing, a drawing displaying the cross-sectional line at the time of cutting the three-dimensional object with the plane is used. Then, an input part 11 inputs the perspective drawing, the position data of erased points on the perspective drawing and an instruction from the outside and calculates the position data of the visual point. Next, a plane expression calculation part 12 calculates an equation inside the three-dimensional space of the plane corresponding to the cross- sectional line by utilizing the position data of the viewpoint and the position data of erased points. Further, a projection calculation part 13 calculates the projected image by projecting the cross-sectional line onto the plane (inside the three-dimensional space) expressed by the calculated equation and acquired the position data or coordinate data of the cross-sectional line from the calculated projected image. Then, the result provided by the projection calculation part 13 is outputted by an output part 14 as the object data of the three-dimensional object.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、任意形状の3次元物体
を表示した1枚の透視図から物体データを作成する装置
および方法に関し、特に、3次元物体が投影されあるい
は描画された1枚の写真、電子画像、スケッチ、絵、建
物の完成予想図(パース)などから、コンピュータを使
用してもとの3次元物体についての物体データを作成す
る装置および方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus and method for creating object data from a perspective view showing a three-dimensional object of an arbitrary shape, and more particularly to a single image on which a three-dimensional object is projected or drawn. The present invention relates to an apparatus and method for creating object data of an original three-dimensional object using a computer from a photograph, an electronic image, a sketch, a picture, a perspective drawing (perspective) of a building, and the like.

【0002】[0002]

【従来の技術】3次元物体を2次元平面に投影した透視
図から、もとの3次元物体の物体データ(3次元物体を
構成する各点の座標など)を求めたい場合がしばしばあ
る。例えば、製品の外観設計などのために、インダスト
リアルデザイナの描いたスケッチやパースをもとに3次
元物体のモデルを作成する場合などがある。このような
場合には、3次元物体自体は設計の途中であってまだ現
実の3次元空間内に存在していないから、もとの3次元
物体を直接計測して物体データを得ることはできない。
2. Description of the Related Art It is often desired to obtain object data of an original three-dimensional object (coordinates of each point forming the three-dimensional object) from a perspective view obtained by projecting a three-dimensional object on a two-dimensional plane. For example, there is a case where a three-dimensional object model is created based on a sketch or perspective drawn by the industrial designer for designing the appearance of a product. In such a case, since the three-dimensional object itself is in the middle of design and does not yet exist in the actual three-dimensional space, the original three-dimensional object cannot be directly measured to obtain the object data. .

【0003】異なる視点からの透視図の枚数が2枚以上
ある場合には、両眼立体視法や測量の原理に基づいて解
析的に物体データを得ることが可能であるが、透視図が
1枚しか存在しない場合には、両眼立体視法などの方法
で物体データを得ることはできない。
When there are two or more perspective views from different viewpoints, it is possible to analytically obtain object data based on the binocular stereoscopic method or the principle of surveying. When only one image exists, the object data cannot be obtained by a method such as a binocular stereoscopic method.

【0004】1枚の2点あるいは3点透視図で描かれた
物体からもとの3次元物体の物体データを得る方法とし
て、特開平3−154972号公報に開示された方法が
ある。この方法は、対称点間を結ぶ直線束から消失点を
決定し、対称点から対称面を求めて3次元座標を決定し
ているので、左右対称の物体にしか適用することができ
ない。
As a method for obtaining the object data of the original three-dimensional object from one object drawn by a two-point or three-point perspective view, there is a method disclosed in Japanese Patent Laid-Open No. 154972/1993. Since this method determines the vanishing point from the straight line bundle connecting the symmetric points and obtains the symmetry plane from the symmetric points to determine the three-dimensional coordinates, it can be applied only to a bilaterally symmetric object.

【0005】[0005]

【発明が解決しようとする課題】上述のように、任意形
状の3次元物体の物体データをたった1枚の透視図から
得る方法は、これまで見出されていない。そのため、デ
ザイナに描いたスケッチからCAD処理のためのコンピ
ュータ入力データを得る場合であっても、スケッチにあ
わせて紙や粘度でモックアップモデルを実際に作成し、
作成したモックアップを実際に計測して物体データを得
ることが行なわれている。これらの作業は大変な労力を
要するものである。
As described above, a method of obtaining object data of a three-dimensional object having an arbitrary shape from only one perspective view has not been found so far. Therefore, even when obtaining computer input data for CAD processing from a sketch drawn on the designer, actually create a mockup model with paper or viscosity according to the sketch,
Object data is obtained by actually measuring the created mockup. These operations are very labor intensive.

【0006】本発明の目的は、たった1枚の透視図に描
かれた任意形状の3次元物体の物体データを簡単かつ迅
速に作成できる透視図からの物体データ作成装置および
方法を提供することにある。
An object of the present invention is to provide a device and method for creating object data from a perspective view that can easily and quickly create object data of a three-dimensional object having an arbitrary shape drawn in only one perspective view. is there.

【0007】[0007]

【課題を解決するための手段】本発明の透視図からの物
体データ作成装置は、任意形状の3次元物体の投影像が
表示された1枚の透視図から前記3次元物体の物体デー
タを作成する物体データ作成装置であって、平面で前記
3次元物体を切ったときの断面線が前記投影像に描かれ
ている透視図と、前記平面に対応する消失点の位置デー
タと、前記透視図の視点の位置データとが入力する入力
手段と、前記消失点の位置データおよび前記視点の位置
データから前記透視図を含む3次元空間内において前記
平面を表現する方程式を求める平面式算出手段と、前記
平面式算出手段で求められた方程式が表わす平面上への
前記断面線の投影像を計算し、計算された投影像の座標
から前記物体データを獲得する投影計算手段とを有す
る。
An object data creating apparatus for a perspective view of the present invention creates object data of a three-dimensional object from a single perspective view on which a projected image of a three-dimensional object having an arbitrary shape is displayed. A perspective view in which a cross-sectional line when the three-dimensional object is cut along a plane is drawn in the projection image, position data of a vanishing point corresponding to the plane, and the perspective view. Inputting means for inputting position data of the viewpoint, and plane formula calculating means for obtaining an equation expressing the plane in the three-dimensional space including the perspective view from the position data of the vanishing point and the position data of the viewpoint, Projection calculation means for calculating a projection image of the cross-section line on the plane represented by the equation calculated by the plane expression calculation means and acquiring the object data from the coordinates of the calculated projection image.

【0008】本発明の透視図からの物体データ作成方法
は、任意形状の3次元物体の投影像が表示された1枚の
透視図から前記3次元物体の物体データを作成する方法
であって、平面で前記3次元物体を切ったときの断面線
が前記投影像に描かれている透視図を使用し、前記平面
に対応する消失点と前記透視図の視点との位置関係か
ら、前記透視図を含む3次元空間内において前記平面を
表現する方程式を求める第1の工程と、前記方程式で表
わされる平面上に前記視点を投影中心として前記断面線
を投影し投影された像から前記物体データを獲得する第
2の工程とを有する。
A method of creating object data from a perspective view of the present invention is a method of creating object data of the three-dimensional object from one perspective view on which a projected image of a three-dimensional object having an arbitrary shape is displayed. The perspective view is used from the positional relationship between the vanishing point corresponding to the plane and the viewpoint of the perspective view, using the perspective view in which the cross-sectional line when the three-dimensional object is cut on the plane is drawn in the projection image. A first step of obtaining an equation expressing the plane in a three-dimensional space including the object data, and the object data from the image projected by projecting the sectional line with the viewpoint as the projection center on the plane represented by the equation. And a second step of acquiring.

【0009】[0009]

【作用】3次元空間(実空間)において1つの平面に垂
直な直線(線分)は、一般に、透視図に投影したとき、
全て同一の消失点に収束する。3次元空間にこの平面と
透視図とをともに配置した場合、この平面の法線ベクト
ルと、この平面に対応する消失点から透視図の視点に向
かうベクトルとは、平行である。したがって、透視図の
視点と消失点とが既知であれば、(視点から平面までの
距離は別として)その消失点に対応する平面の3次元空
間における方程式を求めることが可能となる。この方程
式は、視点から平面までの距離を唯一のパラメータとし
て記述される。
In a three-dimensional space (real space), a straight line (segment) perpendicular to one plane is generally projected on a perspective view as
All converge to the same vanishing point. When this plane and the perspective view are both arranged in a three-dimensional space, the normal vector of this plane and the vector from the vanishing point corresponding to this plane to the viewpoint of the perspective view are parallel. Therefore, if the viewpoint and vanishing point of the perspective view are known, it is possible to obtain the equation in the three-dimensional space of the plane corresponding to the vanishing point (apart from the distance from the viewpoint to the plane). This equation is described with the distance from the viewpoint to the plane as the only parameter.

【0010】ここで、平面による断面線が3次元物体の
透視図上の投影像に加わっているとする。上述のように
して、この断面線に対応する3次元空間内の平面が得ら
れるから、視点を投影中心として、この3次元空間内の
平面に透視図上の断面線を投影すれば、対象となる3次
元物体を3次元空間に配置した場合のその断面線と一致
する。そして3次元空間内の平面の方程式もわかってい
るから、断面線についての3次元空間での座標データが
得られたことになる。断面線はいうまでもなく3次元物
体の一部を構成しているから、以上のことによって、こ
の3次元物体の物体データが得られたことになる。平面
の方程式においてパラメータが1個の残っているが、こ
のパラメータは相似倍率を決めるだけであり、平面上へ
の投影に歪みをもたらしたりする性格のものではない。
Here, it is assumed that a plane section line is added to the projection image of the three-dimensional object on the perspective view. As described above, since the plane in the three-dimensional space corresponding to this cross section line is obtained, if the cross section line on the perspective view is projected onto the plane in this three-dimensional space with the viewpoint as the projection center, When the three-dimensional object is arranged in the three-dimensional space, the line coincides with the section line. Since the plane equation in the three-dimensional space is also known, it means that the coordinate data in the three-dimensional space for the cross-section line is obtained. Needless to say, the cross-sectional line constitutes a part of the three-dimensional object, and thus the object data of this three-dimensional object is obtained by the above. Although there is one parameter left in the equation of the plane, this parameter only determines the scaling factor, and does not cause distortion in the projection on the plane.

【0011】さらに本発明は、断面線の数が複数であっ
て、これら断面線が相互に交差しているような場合に特
に有効である。このような場合、まず、1番目の断面線
に対しては、上述のように3次元空間内への投影を行な
う(このとき、平面の方程式は1個のパラメータで表示
されている)。そして、2番目の断面線に関して同様の
処理を行なうわけであるが、このとき、1番目と2番目
の断面線が交点を共有していれば、この交点の3次元空
間での座標は1番目の断面線に対応する平面のパラメー
タによって記述されるので、この交点が2番目の断面線
に対応する平面にも属していることから、2番目の断面
線に対応する平面のパラメータを1番目の断面線に対応
するパラメータで記述できることになり、3次元空間に
おいて、1番目と2番目の断面線との位置関係が、正し
く得られることになる。
Further, the present invention is particularly effective when there are a plurality of sectional lines and these sectional lines intersect each other. In such a case, first, the first cross-section line is projected into the three-dimensional space as described above (at this time, the equation of the plane is displayed by one parameter). Then, the same processing is performed for the second cross section line, but at this time, if the first and second cross section lines share an intersection, the coordinates of this intersection in the three-dimensional space are the first. Since it is described by the parameter of the plane corresponding to the section line of, the intersection point also belongs to the plane corresponding to the second section line. Therefore, the parameter of the plane corresponding to the second section line is set to the first parameter. It can be described by the parameter corresponding to the cross section line, and the positional relationship between the first and second cross section lines can be obtained correctly in the three-dimensional space.

【0012】断面線が多数あるときは、以上のような2
つの断面線間をつなぐ処理を繰り返し行なうことによ
り、3次元空間において全ての断面線間の相対位置関係
が正しく得られ、このときの全ての断面線の物体データ
は、最初の断面線に対応する1個のパラメータ(相似倍
率)のみで記述されることになる。断面線が多数あれ
ば、これら断面線によってもとの3次元物体が満足でき
る程度にまで表現されていると考えられるから、結局、
相似倍率は別として、3次元物体について、正しくかつ
実質的に完全な物体データが得られることになる。
When there are many cross-section lines, the above 2
By repeating the process of connecting two cross-section lines, the relative positional relationship between all cross-section lines can be obtained correctly in the three-dimensional space, and the object data of all cross-section lines at this time correspond to the first cross-section line. It will be described by only one parameter (similarity ratio). If there are many cross-section lines, it is considered that the original three-dimensional object is expressed to a satisfactory degree by these cross-section lines.
Apart from the scaling factor, correct and substantially complete object data will be obtained for a three-dimensional object.

【0013】[0013]

【実施例】次に、本発明の実施例について、図面を参照
して説明する。図1は本発明の一実施例の物体データ作
成装置の構成を示すブロック図であり、図2はこの装置
の動作を説明するフローチャートである。
Embodiments of the present invention will now be described with reference to the drawings. FIG. 1 is a block diagram showing the configuration of an object data creation device according to an embodiment of the present invention, and FIG. 2 is a flow chart for explaining the operation of this device.

【0014】この物体データ作成装置は、3次元物体が
表示された透視図から、この3次元物体の物体データを
作成するものである。透視図としては、3次元物体を平
面で切ったときの断面線が表示されているものを使用す
る。そして、この物体データ作成装置は、透視図と透視
図上の消失点の位置データと外部からの指示とが入力し
視点の位置データを算出する入力部11と、視点の位置
データと消失点の位置データとを利用し断面線に対応す
る平面の3次元空間内での方程式を算出する平面式算出
部12、求めた方程式が表わす(3次元空間内の)平面
上に断面線を投影して投影像を計算し、計算された投影
像から断面線の位置データや座標データを獲得する投影
計算部13と、投影計算部13で得られた結果を3次元
物体の物体データとして出力する出力部14とによって
構成されている。
This object data creating device creates object data of this three-dimensional object from a perspective view in which the three-dimensional object is displayed. As the perspective view, one in which a cross-sectional line when a three-dimensional object is cut by a plane is displayed is used. The object data creation apparatus includes an input unit 11 for calculating viewpoint position data by inputting a perspective view, position data of vanishing points on the perspective view, and an instruction from the outside, and position data of viewpoints and vanishing points. A plane equation calculation unit 12 that calculates an equation in a three-dimensional space of a plane corresponding to the sectional line using the position data, projects the sectional line on the plane (in the three-dimensional space) represented by the obtained equation. A projection calculation unit 13 that calculates a projection image and obtains position data and coordinate data of the cross-section line from the calculated projection image, and an output unit that outputs the result obtained by the projection calculation unit 13 as object data of a three-dimensional object. 14 and.

【0015】次に、本実施例の動作について、図2を用
いて説明する。ここで説明する動作は、本発明の透視図
からの物体データ作成方法に基づくものである。
Next, the operation of this embodiment will be described with reference to FIG. The operation described here is based on the method for creating object data from a perspective view of the present invention.

【0016】まず、入力部11に、2次元で描かれた透
視図が入力する(ステップ101)。次に、必要に応じ
て透視図に対し、微分フィルターなどの画像処理を行な
い(ステップ102)、透視図から線分を抽出する(ス
テップ103)。ここで線分を抽出するのは、3次元物
体の投影像や断面線を線分の集合として取り扱うためで
ある。
First, a two-dimensional perspective view is input to the input unit 11 (step 101). Next, if necessary, image processing such as a differential filter is performed on the perspective view (step 102), and a line segment is extracted from the perspective view (step 103). The reason why the line segment is extracted here is to handle the projected image of the three-dimensional object and the cross-sectional line as a set of line segments.

【0017】次に、入力部11に消失点の位置データが
入力する(ステップ104)。透視図の内容によって
は、消失線が容易に見つけられ、消失線の収束場所とし
ての消失点がすぐに分かる場合もあるので、入力部11
に消失点の位置の自動検索機能を持たせるようにしても
よい。当然のことながら消失点は、透視図を含む平面内
にある。続いて、入力部11は、透視図の視点の位置を
算出する(ステップ105)。もちろん視点の位置を外
部から入力してもよいが、消失点と異なって透視図から
直観的に視点の位置を求めるのは難しいので、消失点や
消失線を用いた公知の方法で、視点の位置を求めるのが
望ましい。そして入力部11に入力したあるいは入力部
11で算出した各位置データや透視図は、平面式算出部
12に送られる。
Next, the position data of the vanishing point is input to the input unit 11 (step 104). Depending on the contents of the perspective view, the vanishing line may be easily found and the vanishing point as the convergence point of the vanishing line may be immediately known.
May have an automatic search function for the position of the vanishing point. The vanishing point is, of course, in the plane containing the perspective. Subsequently, the input unit 11 calculates the position of the viewpoint of the perspective view (step 105). Of course, the position of the viewpoint may be input from the outside, but it is difficult to intuitively determine the position of the viewpoint from the perspective view unlike the vanishing point. It is desirable to find the position. Then, each position data or perspective view input to the input unit 11 or calculated by the input unit 11 is sent to the plane-type calculation unit 12.

【0018】平面式算出部12は、消失点ごとに、その
消失点に対応する平面の3次元空間での方程式を算出す
る(ステップ106)。ここでこの平面の方程式の算出
手順を詳述する。ここでは図3に示すように、立方体2
1が投影された透視図20が入力したものとする。ここ
で3次元空間の座標として、XY平面が透視図20と一
致し、視点Fが(0,0,f)で表わされるような座標系
を考える。立方体21の各稜は、立方体のそれぞれ面
(平面である)の切口とみなせるので、断面線である。
立方体の12本の稜は、4本ずつ平行であって、透視図
20に投影されたとき、それぞれ左消失点LV(lvx,
lvy,0)、右消失点RV(rvx,rvy,0)、中消失
点MV(mvx,mvy,0)に消失線として収束する。こ
こで各消失点LV,RV,MVに対応する立方体の平面を
それぞれ左垂直平面PL、右垂直平面PR、水平平面PH
とする。また、視点Fからみて透視図20や立方体21
の向こう側にあり、透視図20と平行な平面を正面平面
Fとする。左右の各垂直平面PL,PRの法線ベクトル
は、それぞれ左消失点方向、右消失点方向を向いてい
る。水平平面PHの法線ベクトルは中消失点方向を向い
ている。正面平面PFの法線は視線と平行である。
For each vanishing point, the plane equation calculating unit 12 calculates an equation in the three-dimensional space of the plane corresponding to the vanishing point (step 106). Here, the calculation procedure of this plane equation will be described in detail. Here, as shown in FIG.
It is assumed that the perspective view 20 in which 1 is projected is input. Here, as the coordinates of the three-dimensional space, consider a coordinate system in which the XY plane coincides with the perspective view 20 and the viewpoint F is represented by (0,0, f). Each ridge of the cube 21 is a section line because it can be regarded as a cut of each face (a plane) of the cube.
The 12 edges of the cube are parallel to each other, and when projected on the perspective view 20, the left vanishing point LV (lv x ,
lv y , 0), right vanishing point RV (rv x , rv y , 0), and medium vanishing point MV (mv x , mv y , 0) as vanishing lines. Here, the planes of the cube corresponding to the vanishing points LV, RV, and MV are the left vertical plane P L , the right vertical plane P R , and the horizontal plane P H, respectively.
And Also, seeing from the viewpoint F, the perspective view 20 and the cube 21
A plane that is on the other side of and is parallel to the perspective view 20 is referred to as a front plane P F. The normal vectors of the left and right vertical planes P L and P R point toward the left vanishing point and the right vanishing point, respectively. The normal vector of the horizontal plane P H is directed toward the middle vanishing point. The normal to the front plane P F is parallel to the line of sight.

【0019】このように透視図20や立方体21を配置
した3次元空間を真横から見たものが図4であり、真上
から見た図が図5である(これらの図は正射影図法で描
かれている)。これらの図から明らかなように、水平平
面PHの法線ベクトルと中消失点MVから視点へ向うベ
クトル(−mvx,−mvy,f)とは平行である。よっ
て、水平平面PHを3次元空間での方程式で表わすと、
FIG. 4 is a side view of the three-dimensional space in which the perspective view 20 and the cube 21 are arranged as described above, and FIG. 5 is a view from directly above (these views are based on the orthogonal projection method). Drawn). As is clear from these figures, the normal vector of the horizontal plane P H and the vector (−mv x , −mv y , f) directed from the middle vanishing point MV to the viewpoint are parallel. Therefore, if the horizontal plane P H is expressed by an equation in a three-dimensional space,

【0020】[0020]

【数1】 となる。[Equation 1] Becomes

【0021】左垂直平面PLの法線ベクトルと左消失点
LVから視点に向うベクトル(−lvx,−lvy,f)と
は平行である。よって、左垂直平面PLの方程式は、
The normal vector of the left vertical plane P L and the vector (-lv x , -lv y , f) directed from the left vanishing point LV to the viewpoint are parallel. Therefore, the equation of the left vertical plane P L is

【0022】[0022]

【数2】 同様に、右垂直平面PRの方程式は、[Equation 2] Similarly, the equation for the right vertical plane P R is

【0023】[0023]

【数3】 となる。正面平面PFは視点に垂直であるから、正面平
Fの方程式は、
[Equation 3] Becomes Since the front plane P F is perpendicular to the viewpoint, the equation of the front plane F is

【0024】[0024]

【数4】 となる。ここでdはパラメータである。以上のようにし
て、各平面の方程式が算出され、このように算出された
方程式は、投影計算部13に送られる。
[Equation 4] Becomes Here, d is a parameter. As described above, the equation of each plane is calculated, and the equation thus calculated is sent to the projection calculation unit 13.

【0025】次に、平面と断面線との対応づけを行な
う。透視図に投影された3次元物体の像には一般に複数
の断面線が描かれているから、入力部11を介して投影
計算部13に対し、個々の断面線と平面とがどのように
対応するかを指示、入力する(ステップ107)。な
お、入力された断面線が、左、右、水平、正面のどの平
面に対応するかを自動的に判別するようにしてもよい。
この場合、相互に平行な複数の平面による複数の断面線
に対しては、対応する消失点が同一であることにより、
各断面線に同一の平面を対応させることが可能である、
実際には、3次元空間において各断面線は、上記パラメ
ータdだけが異なる相互に平行な平面のどれかに対応し
ている。ここではパラメータdをまだ決めていないの
で、同一平面に対応させるものとしておく。
Next, the plane and the section line are associated with each other. Since a plurality of cross-section lines are generally drawn in the image of the three-dimensional object projected on the perspective view, how the individual cross-section lines and the plane correspond to the projection calculation unit 13 via the input unit 11. It is instructed and input whether or not (step 107). It should be noted that it may be automatically determined which of the left, right, horizontal, and front planes the input section line corresponds to.
In this case, since the corresponding vanishing points are the same for a plurality of cross-section lines formed by a plurality of mutually parallel planes,
It is possible to correspond the same plane to each section line,
In reality, each section line in the three-dimensional space corresponds to one of mutually parallel planes that differ only in the parameter d. Since the parameter d has not yet been determined here, it is assumed to correspond to the same plane.

【0026】図6(A)〜(C)は、断面線が描かれたそれぞ
れくさび型、帽子型、卵型の3次元物体に対し、どの平
面が対応するかを示した例である。図において例えば水
平断面線LHとある断面線は、水平平面PHに対応し、左
垂直断面線LL、右垂直断面線LR、正面断面線LFはそ
れぞれ左垂直断面PL、右垂直断面PR、正面断面PF
対応している。
FIGS. 6A to 6C are examples showing which plane corresponds to each of the wedge-shaped, hat-shaped, and egg-shaped three-dimensional objects whose cross-section lines are drawn. In the figure, for example, a horizontal section line L H corresponds to a horizontal plane P H , and a left vertical section line L L , a right vertical section line L R , and a front section line L F are left vertical section P L and right, respectively. It corresponds to the vertical section P R and the front section P F.

【0027】次に、視点Fを投影中心として、各断面線
を3次元空間内の対応する平面に投影する(ステップ1
08)。上述のように、透視図は3次元空間の座標でX
Y平面に一致するように設定されている。ここでは図6
(B)の帽子型物体が描かれた透視図30を用いて投影を
行なう場合について、図7を用いて説明する。
Next, each sectional line is projected onto the corresponding plane in the three-dimensional space with the viewpoint F as the projection center (step 1).
08). As mentioned above, the perspective view is X in coordinates in three-dimensional space.
It is set to coincide with the Y plane. Here, FIG.
A case where projection is performed using the perspective view 30 in which the hat-shaped object of (B) is drawn will be described with reference to FIG. 7.

【0028】まず、透視図30上の水平断面線LH1を3
次元空間内の水平平面PH1上に投影する。この時点で、
水平平面PH1の方程式はパラメータdを含むので、実際
には相互に平行な平面群として表わされている。そこ
で、水平平面PH1上の1点を決めて水平平面PH1を確定
することが必要となる。視点Fから透視図30上の水平
断面線LH1上の任意の点a1に向かうベクトルを考え、
このベクトルの延長の任意の位置に点b1(x0,y0,
0)を設定し、この点b1が水平平面PH1に含まれるも
のとする。すると、式(1)にb1を代入することにより、
First, the horizontal sectional line L H1 on the perspective view 30 is set to 3
Project onto a horizontal plane P H1 in the dimensional space. at this point,
Since the equation of the horizontal plane P H1 includes the parameter d, it is actually represented as a group of planes parallel to each other. Therefore, it is necessary to determine the horizontal plane P H1 decide a point on the horizontal plane P H1. Consider a vector from the viewpoint F to an arbitrary point a 1 on the horizontal section line L H1 on the perspective view 30,
At any position of the extension of this vector, the point b 1 (x 0 , y 0 ,
z 0 ), and this point b 1 is included in the horizontal plane P H1 . Then, by substituting b 1 into equation (1),

【0029】[0029]

【数5】 のようにして、パラメータdの値が決定する。これによ
り、水平平面PH1が3次元空間の中で確定したことにな
る(図7(A))。
[Equation 5] As described above, the value of the parameter d is determined. As a result, the horizontal plane P H1 is fixed in the three-dimensional space (FIG. 7 (A)).

【0030】次に、視点Fを投影中心として、水平断面
線LH1上の点a2,a3,a4をそれぞれ水平平面PH1上に
投影し、投影後の点b2,b3,b4を得る(図7(B))。点
2の座標を(ax,ay,0)、これに対応する点b2の座
標を(bx,by,bz)とすると、視点Fから点a2に向か
うベクトルは(ax,ay,−f)であるから、視点Fから
点b2に向かうベクトルはそのn倍であり、
Next, with the viewpoint F as the center of projection, the points a 2 , a 3 and a 4 on the horizontal section line L H1 are projected onto the horizontal plane P H1 , respectively, and the projected points b 2 , b 3 and b 4 is obtained (FIG. 7 (B)). The coordinate point a 2 (a x, a y , 0), which the corresponding point b a second coordinate (b x, b y, b z) When, the vector directed from the point of view F to point a 2 ( a x , a y , −f), the vector from the viewpoint F to the point b 2 is n times that.

【0031】[0031]

【数6】 が成立する。式(5),(6)を式(1)に代入してnについて解
くと、
[Equation 6] Is established. Substituting equations (5) and (6) into equation (1) and solving for n,

【0032】[0032]

【数7】 となる。求められたnを式(6)に代入すると、点b2の座
標が求められる。同様にして、点b3,b4も求める。
[Equation 7] Becomes By substituting the obtained n into the equation (6), the coordinates of the point b 2 can be obtained. Similarly, the points b 3 and b 4 are obtained.

【0033】ところで透視図30において、水平断面線
H1上の点a1は、正面断面線LF1上の点でもある。し
たがって3次元空間内の正面平面PF1は、点b1(x0,
0,z0)を通る。このことと式(4)とより、正面平面P
F1の方程式は、
Incidentally, in the perspective view 30, the point a 1 on the horizontal section line L H1 is also the point on the front section line L F1 . Therefore, the front plane P F1 in the three-dimensional space is the point b 1 (x 0 ,
y 0 , z 0 ). From this and the formula (4), the front plane P
The equation of F1 is

【0034】[0034]

【数8】 となる。正面断面線上の点a5,a6,a7をそれぞれ正面
平面PF1に投影し、投影後の点b5,b6,b7を得る(図
7(C))。上述と同様にパラメータnを用いれば、
[Equation 8] Becomes The points a 5 , a 6 , a 7 on the front sectional line are projected on the front plane P F1 to obtain the projected points b 5 , b 6 , b 7 (FIG. 7 (C)). Using the parameter n as above,

【0035】[0035]

【数9】 によってnが定めるので、点b5,b6,b7が求まること
になる。
[Equation 9] Since n is determined by the above, points b 5 , b 6 and b 7 are obtained.

【0036】以上の操作により、3次元空間内で点b1
〜b7の座標がすべて求まったことになる。
By the above operation, the point b 1 in the three-dimensional space
Coordinates of ~b 7 is that the Motoma' all.

【0037】次に、補間、補正処理を行なう(ステップ
109)。上記の処理では断面線上の点(例えば上述の
場合の点a1〜a7)を対象として投影を行なっているの
で、この補間によって、投影後の点間を結ぶ線を求め
る。また、フリーハンドで描かれた断面線などの場合に
は、得られた物体データに歪みが生じていることがある
のでこれに対し適宜の修正を行なう。そして、このよう
にして得られた物体データをもとに面取り処理を行なう
(ステップ110)。断面線から得られた物体データ
は、基本的にはワイヤフレームモデルに基づくものなの
で、面取り処理によって、物体データをサーフェースモ
デルに基づくものに変換する。
Next, interpolation and correction processing is performed (step 109). In the above processing, since the projection is performed with respect to the points on the cross-section line (for example, the points a 1 to a 7 in the above case), the line connecting the projected points is obtained by this interpolation. Further, in the case of a cross-section line drawn by freehand, the obtained object data may be distorted, so appropriate correction is made. Then, a chamfering process is performed based on the object data thus obtained (step 110). Since the object data obtained from the cross-section line is basically based on the wire frame model, the object data is converted into the surface model based on the chamfering process.

【0038】以上の処理により、1枚の透視図上に描か
れた3次元物体についての物体データを作成できたこと
になる。
By the above processing, it is possible to create the object data for the three-dimensional object drawn on one perspective view.

【0039】なお、投影面が左垂直平面であるときは、
式(7)に相当する式は
When the projection plane is the left vertical plane,
The formula corresponding to formula (7) is

【0040】[0040]

【数10】 であり、投影面が右垂直平面であるときは、式(7)に相
当する式は、
[Equation 10] And when the projection plane is the right vertical plane, the equation corresponding to equation (7) is

【0041】[0041]

【数11】 である。[Equation 11] Is.

【0042】次に、デザイナが描いた透視図をもとに実
際に物体データを得た例について説明する。図8は、デ
ザイナが透視図法で描いたコンパクトカメラのスケッチ
である。このスケッチには、左垂直断面線LL、右垂直
断面線LR、水平断面線LHがそれぞれ複数本描かれてい
る。このようにフリーハンドに近い状態で断面線を描く
ことは、インダストリアルデザイナや建築設計家にとっ
て、困難なことではない。
Next, an example in which the object data is actually obtained based on the perspective view drawn by the designer will be described. FIG. 8 is a sketch of a compact camera drawn by the designer in perspective projection. In this sketch, a plurality of left vertical section lines L L , right vertical section lines L R , and horizontal section lines L H are drawn. It is not difficult for industrial designers and architects to draw cross-section lines in such a freehand state.

【0043】そして、図2のフローチャートのステップ
101〜ステップ109までの処理を実行し、3次元空
間内での各断面線の物体データを算出した。断面線につ
いて物体データが得られれば、CADによってこの物体
データが表わす図形を自由に回転させたり相似変形させ
たりすることができる。図10〜図12は、このように
CAD内で回転させた結果を示すものである。これらの
図において、途中で切れている断面線があるのは、例え
ばレンズ部の陰になるため、その部分の断面線がもとに
スケッチに描かれていなかったためである。さらにステ
ップ110の面取り処理をおこなって得た結果が図13
に示されている。この図から明らかなように、1枚のス
ケッチから十分満足できる3次元物体の物体データが作
成され、3次元物体のモデリングを行なうことができ
た。
Then, the processing from step 101 to step 109 in the flowchart of FIG. 2 was executed to calculate the object data of each cross section line in the three-dimensional space. Once the object data is obtained for the cross-section line, the figure represented by the object data can be freely rotated or similarly deformed by CAD. FIG. 10 to FIG. 12 show the result of such rotation in the CAD. In these figures, the reason why there is a cross-section line in the middle is that, for example, the cross-section line of that part is not drawn in the sketch because it is behind the lens part. The result obtained by performing the chamfering process in step 110 is shown in FIG.
Is shown in. As is clear from this figure, sufficiently satisfactory three-dimensional object data was created from one sketch, and modeling of the three-dimensional object was possible.

【0044】以上本発明の実施例について説明したが、
本発明は、消失点の数として1以上の任意のものを選択
することができる。また、平面として、左垂直平面、右
垂直平面、正面平面、水平平面のみに限定されるもので
はなく、任意の向きの平面を任意の数で自由に使用する
ことができる。また、複数の断面線があってこれらの断
面線が交わらないような場合には、何らかの方法で断面
線間の距離などを求めれば、3次元空間における断面線
相互の位置関係を正しく求めることが可能である。
The embodiment of the present invention has been described above.
In the present invention, the number of vanishing points can be selected arbitrarily as one or more. The planes are not limited to the left vertical plane, the right vertical plane, the front plane, and the horizontal plane, and any number of planes in any orientation can be freely used. Further, when there are a plurality of cross-section lines and these cross-section lines do not intersect, if the distance between the cross-section lines is obtained by some method, the positional relationship between the cross-section lines in the three-dimensional space can be correctly obtained. It is possible.

【0045】[0045]

【発明の効果】以上説明したように本発明は、断面線が
描かれた透視図を用い、消失点と視点の位置データから
断面線に対応する平面の3次元空間内での方程式を求
め、視点を投影中心としてこの方程式で表わされる平面
上に断面線を投影することにより、たった1枚の透視図
から、任意形状の3次元物体の物体データを簡単かつ迅
速に求めることができるという効果がある。
As described above, according to the present invention, a perspective view in which a section line is drawn is used to obtain an equation in a three-dimensional space of a plane corresponding to the section line from position data of vanishing point and viewpoint, By projecting the cross-section line on the plane represented by this equation with the viewpoint as the projection center, it is possible to easily and quickly obtain the object data of a three-dimensional object of an arbitrary shape from only one perspective view. is there.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例の物体データ作成装置の構成
を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an object data creation device according to an embodiment of the present invention.

【図2】図1の装置の動作を説明するフローチャートで
ある。
FIG. 2 is a flowchart illustrating the operation of the device of FIG.

【図3】立方体に対する透視図における各消失点と各平
面の配置を示す図である。
FIG. 3 is a diagram showing an arrangement of vanishing points and planes in a perspective view of a cube.

【図4】図3の透視図と立方体とを含む空間を横から見
た図である。
4 is a side view of a space including the perspective view and the cube of FIG. 3;

【図5】図3の透視図と立方体とを含む空間を上から見
た図である。
5 is a view of the space including the perspective view and the cube of FIG. 3 as seen from above.

【図6】(A)〜(c)は、それぞれ、くさび型物体、帽子型
物体、卵型物体の2次元の透視図である。
6A to 6C are two-dimensional perspective views of a wedge-shaped object, a hat-shaped object, and an egg-shaped object, respectively.

【図7】(A)〜(C)は、それぞれ、帽子型物体が描かれた
透視図から3次元の物体データを作成する過程を示す図
である。
7A to 7C are diagrams showing a process of creating three-dimensional object data from a perspective view in which a hat-shaped object is drawn.

【図8】コンパクトカメラの透視図法に基づく断面線入
りのスケッチである。
FIG. 8 is a sketch with a section line based on the perspective view of a compact camera.

【図9】図8のスケッチをもとに本発明の方法で物体デ
ータを獲得し、獲得されたデータに基づいてCADで作
成した正面図である。
9 is a front view of the object data acquired by the method of the present invention based on the sketch of FIG. 8 and created by CAD based on the acquired data.

【図10】図8のスケッチをもとに本発明の方法で物体
データを獲得し、獲得されたデータに基づいてCADで
作成した斜視図である。
FIG. 10 is a perspective view of the object data acquired by the method of the present invention based on the sketch of FIG. 8 and created by CAD based on the acquired data.

【図11】図8のスケッチをもとに本発明の方法で物体
データを獲得し、獲得されたデータに基づいてCADで
作成した側面図である。
FIG. 11 is a side view of the object data acquired by the method of the present invention based on the sketch of FIG. 8 and created by CAD based on the acquired data.

【図12】図8のスケッチをもとに本発明の方法で物体
データを獲得し、獲得されたデータに基づいて面取り処
理を行なった例を示す図である。
FIG. 12 is a diagram showing an example in which object data is acquired by the method of the present invention based on the sketch of FIG. 8 and chamfering processing is performed based on the acquired data.

【符号の説明】[Explanation of symbols]

11 入力部 12 平面式算出部 13 投影計算部 14 出力部 20,30 透視図 21 立方体 101〜110 ステップ F 視点 LF 正面断面線 LH 水平断面線 LL 左垂直断面線 LR 右垂直断面線 PF 正面平面 PH 水平平面 PL 左垂直平面 PR 右垂直平面 LV 左消失点 MV 中消失点 RV 右消失点11 Input Part 12 Plane Calculation Part 13 Projection Calculation Part 14 Output Part 20,30 Perspective View 21 Cube 101-110 Step F Viewpoint L F Front Section Line L H Horizontal Section Line L L Left Vertical Section Line L R Right Vertical Section Line P F Front plane P H Horizontal plane P L Left vertical plane P R Right vertical plane LV Left vanishing point MV Middle vanishing point RV Right vanishing point

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 任意形状の3次元物体の投影像が表示さ
れた1枚の透視図から前記3次元物体の物体データを作
成する物体データ作成装置であって、 平面で前記3次元物体を切ったときの断面線が前記投影
像に描かれている透視図と、前記平面に対応する消失点
の位置データと、前記透視図の視点の位置データとが入
力する入力手段と、 前記消失点の位置データおよび前記視点の位置データか
ら前記透視図を含む3次元空間内において前記平面を表
現する方程式を求める平面式算出手段と、 前記平面式算出手段で求められた方程式が表わす平面上
への前記断面線の投影像を計算し、計算された投影像の
座標から前記物体データを獲得する投影計算手段とを有
する透視図からの物体データ作成装置。
1. An object data creating device for creating object data of a three-dimensional object from a perspective view of a projected image of a three-dimensional object having an arbitrary shape, wherein the three-dimensional object is cut in a plane. A perspective view in which the cross-section line when drawn is in the projection image, position data of vanishing points corresponding to the plane, and input means for inputting position data of viewpoints of the perspective views, and of the vanishing points Plane equation calculating means for obtaining an equation expressing the plane in the three-dimensional space including the perspective view from the position data and the position data of the viewpoint; and the plane equation on the plane represented by the equation obtained by the plane equation calculating means. An apparatus for creating object data from a perspective view, which comprises a projection calculation means for calculating a projection image of a cross-section line and acquiring the object data from the coordinates of the calculated projection image.
【請求項2】 平面が、3次元物体を正投影した場合の
正面図に平行な平面、左側面図に平行な平面、右側面図
に平行な平面、平面図に平行な平面のうちの1以上のも
のである請求項1記載の物体データ作成装置。
2. One of a plane parallel to a front view, a plane parallel to a left side view, a plane parallel to a right side view, and a plane parallel to a plan view when a three-dimensional object is orthographically projected. The object data creation device according to claim 1, which is as described above.
【請求項3】 任意形状の3次元物体の投影像が表示さ
れた1枚の透視図から前記3次元物体の物体データを作
成する方法であって、 平面で前記3次元物体を切ったときの断面線が前記投影
像に描かれている透視図を使用し、 前記平面に対応する消失点と前記透視図の視点との位置
関係から、前記透視図を含む3次元空間内において前記
平面を表現する方程式を求める第1の工程と、 前記方程式で表わされる平面上に前記視点を投影中心と
して前記断面線を投影し投影された像から前記物体デー
タを獲得する第2の工程とを有する透視図からの物体デ
ータ作成方法。
3. A method of creating object data of a three-dimensional object from a perspective view showing a projected image of a three-dimensional object of an arbitrary shape, the method comprising: The perspective view in which the cross-section line is drawn in the projection image is used, and the plane is expressed in the three-dimensional space including the perspective view from the positional relationship between the vanishing point corresponding to the plane and the viewpoint of the perspective view. And a second step of obtaining the object data from the projected image by projecting the cross-section line with the viewpoint as the projection center on the plane represented by the equation. Method for creating object data from the.
【請求項4】 請求項3記載の物体データ作成方法にお
いて、相互に交点を共有する少なくとも2つの断面線が
前記投影像に描かれた透視図を使用し、 一方の断面線に対応する平面と前記一方の断面線とに関
して、前記第1および第2の工程を実施し、 続いて、前記第2の工程での投影された像中の前記交点
を前記他方の断面線に対応する平面の前記3次元空間内
での基準位置として、前記他方の断面線に対応する平面
と前記他方の断面線とに関して、前記第1および第2の
工程を実施する透視図からの物体データ作成方法。
4. The object data creating method according to claim 3, wherein at least two cross-section lines sharing an intersection with each other are used in a perspective view, and a plane corresponding to one of the cross-section lines is used. The first and second steps are carried out with respect to the one section line, and subsequently, the intersection point in the projected image in the second step is formed on the plane corresponding to the other section line. A method of creating object data from a perspective view, wherein the first and second steps are performed on a plane corresponding to the other section line and the other section line as a reference position in a three-dimensional space.
JP04296775A 1992-11-06 1992-11-06 Object data creation device from perspective view Expired - Fee Related JP3137776B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP04296775A JP3137776B2 (en) 1992-11-06 1992-11-06 Object data creation device from perspective view
EP19930117970 EP0596518A3 (en) 1992-11-06 1993-11-05 Method of and apparatus for determining data representing 3-dimensional object from perspective view.

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04296775A JP3137776B2 (en) 1992-11-06 1992-11-06 Object data creation device from perspective view

Publications (2)

Publication Number Publication Date
JPH06149943A true JPH06149943A (en) 1994-05-31
JP3137776B2 JP3137776B2 (en) 2001-02-26

Family

ID=17837975

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04296775A Expired - Fee Related JP3137776B2 (en) 1992-11-06 1992-11-06 Object data creation device from perspective view

Country Status (1)

Country Link
JP (1) JP3137776B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011148250A2 (en) 2010-05-27 2011-12-01 Toyota Jidosha Kabushiki Kaisha Method for creating three-dimensional shape data, apparatus for creating three-dimensional shape data, and computer-readable storage medium
US8269766B2 (en) 2005-12-28 2012-09-18 Toyota Jidosha Kabushiki Kaisha Method for generating three-dimensional shape data, apparatus for generating three-dimensional shape data, and three-dimensional shape data generating program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5942953B2 (en) 2013-09-25 2016-06-29 日本電気株式会社 Wire material transport mechanism, wire material transport method, and tape transport mechanism

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8269766B2 (en) 2005-12-28 2012-09-18 Toyota Jidosha Kabushiki Kaisha Method for generating three-dimensional shape data, apparatus for generating three-dimensional shape data, and three-dimensional shape data generating program
WO2011148250A2 (en) 2010-05-27 2011-12-01 Toyota Jidosha Kabushiki Kaisha Method for creating three-dimensional shape data, apparatus for creating three-dimensional shape data, and computer-readable storage medium
US9214039B2 (en) 2010-05-27 2015-12-15 Toyota Jidosha Kabushiki Kaisha Method for creating three-dimensional shape data, apparatus for creating three-dimensional shape data, and corresponding computer-readable storage medium

Also Published As

Publication number Publication date
JP3137776B2 (en) 2001-02-26

Similar Documents

Publication Publication Date Title
EP3353750B1 (en) Methods and systems for detecting and combining structural features in 3d reconstruction
US7812839B2 (en) Method for creating 3-D curved suface by using corresponding curves in a plurality of images
CA2040273C (en) Image displaying system
US5790713A (en) Three-dimensional computer graphics image generator
US8269766B2 (en) Method for generating three-dimensional shape data, apparatus for generating three-dimensional shape data, and three-dimensional shape data generating program
JP2892423B2 (en) Image display device and image display method
US6226004B1 (en) Modeling system using surface patterns and geometric relationships
EP0726543B1 (en) Image processing method and apparatus therefor
EP0573153A2 (en) Apparatus and method for converting line segment data to three-dimensional data
JPH0744701B2 (en) Three-dimensional superimpose device
CN115861547A (en) Model surface sample line generation method based on projection
JP3137776B2 (en) Object data creation device from perspective view
US7064767B2 (en) Image solution processing method, processing apparatus, and program
JPH03138784A (en) Reconstructing method and display method for three-dimensional model
EP0596518A2 (en) Method of and apparatus for determining data representing 3-dimensional object from perspective view
JP6719168B1 (en) Program, apparatus and method for assigning label to depth image as teacher data
EP3779878A1 (en) Method and device for combining a texture with an artificial object
JP3193196B2 (en) Automatic development drawing generation system for plate bending
JPH09237346A (en) Method for composing partial stereoscopic model and method for preparing perfect stereoscopic model
JP2518676B2 (en) 3D hidden surface treatment method
JPH08263696A (en) Three-dimensional object model generating method
WO2023228712A1 (en) Information processing device, information processing method, and program
CN115761139B (en) Modeling method and device
JP4017351B2 (en) 3D model generation apparatus and 3D model generation program
Sengupta et al. Novel scene generation, merging and stitching views using the 2D affine space

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20001107

LAPS Cancellation because of no payment of annual fees