JPS638881A - Shade displaying method - Google Patents

Shade displaying method

Info

Publication number
JPS638881A
JPS638881A JP61151044A JP15104486A JPS638881A JP S638881 A JPS638881 A JP S638881A JP 61151044 A JP61151044 A JP 61151044A JP 15104486 A JP15104486 A JP 15104486A JP S638881 A JPS638881 A JP S638881A
Authority
JP
Japan
Prior art keywords
patch
triangular unit
unit area
shading
cut out
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
JP61151044A
Other languages
Japanese (ja)
Inventor
Tetsuzo Kuragano
哲造 倉賀野
Atsushi Kikuchi
敦 菊池
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP61151044A priority Critical patent/JPS638881A/en
Publication of JPS638881A publication Critical patent/JPS638881A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To stick a shade so that a curved line sense held inherently with a patch cannot be lost by selecting the number of the division at a triangle unit area segmented from one patch in accordance with the necessity. CONSTITUTION:Many triangle unit areas UA are segmented from one patch S(u,v) and concerning respective triangle unit areas UA, a shade processing is executed. The number of the division of the triangle unit areas UA to be cut out is selected to the value so that an error delta between border curved lines BOD1-BOD4 of the patch S(u,v) and one side of the triangle unit areas UA segmented along the border curved lines BOD1-BOD4 can be smaller than the prescribed value. Thus, the shade, in which the curved line sense held inherently by the border curved lines BOD1-BOD4 practically is not lose, can be stuck to the patch S(u,v).

Description

【発明の詳細な説明】 A産業上の利用分野 本発明は陰影表示方法に関し、例えばCAD (com
puter aided design)、又はCA 
M (computeraided manufact
uring)などにおいて生成された自由曲面について
、陰影処理をする場合に適用して好適なものである。
DETAILED DESCRIPTION OF THE INVENTION A. Field of Industrial Application The present invention relates to a method for displaying shading, for example, CAD (com
putter aided design) or CA
M
This method is suitable for applying shading to a free-form surface generated in a process such as URING.

B発明の概要 本発明は、1つのパッチから三角形単位領域を切り出し
て陰影処理をするようになされた陰影表示方法において
、三角形単位領域の分割数を必要に応じて選定し得るよ
うにしたことにより、パッチが本来もっている曲線感を
失わせないように陰影をつけることができる。
B. Summary of the Invention The present invention provides a shading display method in which a triangular unit area is cut out from one patch and shading processing is performed, by making it possible to select the number of divisions of the triangular unit area as necessary. , you can add shading to the patch without losing its original curved feel.

C従来の技術 例えばCADの手法を用いて自由曲面をもった物体の形
状をデザインする場合(gioa+etric mod
eling) 、IQにデザイナは、曲面が通るべき3
次元空間における複数の点(これを節点と呼ぶ)を指定
し、当該指定された複数の節点を結ぶ境界曲線網を所定
のベクトル関数を用いてコンピュータによって演算させ
ることにより、いわゆるワイヤフレームで表現された曲
面を作成する。かくして境界曲線によって囲まれた多数
の枠組み空間を形成することができる(このような処理
を枠組み処理と呼ぶ)。かかる枠組み処理によって形成
された境界曲線網は、それ自体デザイナがデザインしよ
うとする大まかな形状を有しており、各枠組み空間を囲
む境界曲線を用いて所定のベクトル関数によって表現で
きる曲面を補間演算することができれば、全体としてデ
ザイナがデザインした自由曲面(2次関数で規定できな
いものを言う)を生成することができる。ここで各枠組
み空間に張られた曲面は全体の曲面を構成する基本要素
を形成し、これをパッチと呼ぶ。
C Conventional technology For example, when designing the shape of an object with a free-form surface using a CAD method (gioa+etric mod
eling), the designer in IQ is 3 that the curved surface should pass through.
By specifying multiple points in a dimensional space (these are called nodes) and having a computer calculate a boundary curve network connecting the specified multiple nodes using a predetermined vector function, it can be expressed in a so-called wire frame. Create a curved surface. In this way, a large number of framework spaces surrounded by boundary curves can be formed (such processing is called framework processing). The boundary curve network formed by such framework processing itself has the rough shape that the designer intends to design, and an interpolation operation is performed to create a curved surface that can be expressed by a predetermined vector function using the boundary curves surrounding each framework space. If it is possible to do so, it is possible to generate a free-form surface (which cannot be defined by a quadratic function) that is designed by the designer as a whole. Here, the curved surfaces stretched across each framework space form basic elements constituting the entire curved surface, and these are called patches.

従来この種のCADシステムにおいては、境界曲線網を
表現するベクトル関数として、計算が容易な例えばベジ
ェ(bezier)式、B−スプライン(B−spli
ne)式でなる3次のテンソル積が用いられており、例
えば形状的に特殊な特徴がないような自由曲面を数式表
現するには最適であると考えられている。
Conventionally, in this type of CAD system, easy-to-calculate vector functions representing boundary curve networks, such as the Bezier equation and B-spline, have been used.
A third-order tensor product formed by the equation (ne) is used, and is considered to be optimal for mathematically expressing a free-form surface that does not have any special features in terms of shape, for example.

すなわち形状的に特殊な特徴がないような自由曲面は、
空間に与えられた点をxy平面上に投影したとき、当該
投影さた点が規則的にマトリクス状に並んでいることが
多く、この投影点の数がm×nで表されるとき、当該枠
組み空間を3次のベジェ式で表される四辺形パッチを用
いて容易に張ることができる。
In other words, a free-form surface that has no special features in shape is
When points given in space are projected onto the xy plane, the projected points are often arranged regularly in a matrix, and when the number of projected points is expressed as m x n, the The framework space can be easily spanned using quadrilateral patches expressed by cubic Bezier equations.

しかし形状的に特徴がある曲面(例えば大きく歪んだ形
状をもつ曲面)に滑らかな自由曲面を張ろうとする場合
には、パッチ相互間の接続方法に困難があり、高度な数
学的演算処理を実行する必要があるため、従来はコンピ
ュータによる演算処理が複雑かつ膨大になると共に、演
算時間が長大になる問題があった。
However, when trying to create a smooth free-form surface on a curved surface with a characteristic shape (for example, a curved surface with a greatly distorted shape), it is difficult to connect the patches, and advanced mathematical calculations are required. Because of the need to do so, conventionally there was a problem that the calculation processing by the computer was complicated and enormous, and the calculation time was also long.

この問題を解決する方法として、隣合う枠組み空間の共
有境界について、接平面連続の条件を満足するような内
部の制御点を求め、当該内部の制御点によって決まる自
由曲面を表すベクトル関数によって、自由曲面でなるパ
ッチを張る方法が提案されている(特願昭60−277
448号、特願昭60−290849号、特願昭60−
298638号、特願昭61−33412号、特願昭6
1−59790号、特願昭61−64560号、特願昭
61−69368号、特願昭61−69385号)。
As a way to solve this problem, we find internal control points that satisfy the condition of tangent plane continuity for the shared boundaries of adjacent framework spaces, and use a vector function that represents the free-form surface determined by the internal control points to A method of applying patches made of curved surfaces has been proposed (Japanese Patent Application No. 60-277)
No. 448, Patent Application No. 1984-290849, Patent Application No. 1983-
No. 298638, Japanese Patent Application No. 1983-33412, Japanese Patent Application No. 1983
1-59790, Japanese Patent Application No. 61-64560, Japanese Patent Application No. 61-69368, Japanese Patent Application No. 61-69385).

ところでこのような手法によって生成された自由曲面デ
ータによって表される自由曲面に対して、陰影処理を施
すことによって陰影をつけることができれば、当該曲面
をディスプレイ上に立体的に表示できることにより、グ
ラフィック画像として高品位の画像を提供することがで
きると考えられ、従来かかる陰影処理を線形補間によっ
て実現する方法が提案されている(特願昭60−370
77号)。
By the way, if it is possible to add shading to a free-form surface represented by free-form surface data generated by such a method by applying shading processing, it is possible to display the curved surface three-dimensionally on a display, thereby creating a graphic image. It is believed that high-quality images can be provided as images, and a method has been proposed in which such shading processing is realized by linear interpolation (Japanese Patent Application No. 1983-370).
No. 77).

この陰影処理方法は、例えば第3図及び第4図に示すよ
うに、 四辺形パッチ及び三辺形パッチS lu+ v
)について、パッチS (un v)の座標を表すU及
びV方向について、それぞれ所定の分割数で分割しく例
えば4×4分割し)、各分割領域ごとに、三角形単位領
域UAを切り出し、当該三角形単位領域UAの3つの頂
点について自由曲面の明るさを表すデータを求め、当該
3つのデータによって三角形単位領域UAに張った輝度
平面に基づいて、三角形単位領域UAに含まれる全ての
ピクセルについての輝度を線形補間演算するようになさ
れている。
This shading processing method, for example, as shown in FIGS. 3 and 4, uses a quadrilateral patch and a triangle patch
), the U and V directions representing the coordinates of the patch S (un v) are divided into a predetermined number of divisions (for example, 4×4), and a triangular unit area UA is cut out for each divided area, and the triangle is Obtain data representing the brightness of the free-form surface for the three vertices of the unit area UA, and calculate the brightness of all pixels included in the triangular unit area UA based on the brightness plane stretched over the triangular unit area UA using the three data. is designed to perform linear interpolation calculations.

このようにすれば、三角形単位領域UAに含まれる全て
のピクセルについて逐一輝度を演算するような処理をす
る場合と比較して、格段的に陰影処理を短時間の間に実
行することができる。
In this way, the shading process can be executed in a much shorter time than when the brightness is calculated one by one for every pixel included in the triangular unit area UA.

D発明が解決しようとする問題点 ところがこの方法によって枠組み処理した枠組み空間の
形状が、例えば第5図に示すように細長い形状をもつ枠
組み空間に張ったパッチS +u+ V)の4つの境界
面′4iABOD1〜BoD4のうち、互いに対向する
長い辺を形成する境界曲線BOD 1及びBOD5を例
えば4分割することによって、一方の境界曲線BOD 
1を3つの分割点QI0、QgoSQ3(1によって分
割して4つの三角形単位領域UAI i UAI 2、
UAI3、UAI4を形成するようにすると共に、同様
にして他方の境界曲線BOD5についても3つの分割点
Q13、Qz3、Qssによって4つの三角形単位領域
UA31.UA32、UA33、UA34を切り出すよ
うにする場合には、次のような問題がある。
D Problems to be Solved by the Invention However, the shape of the framework space processed by this method is, for example, as shown in FIG. 4iABOD1 to BoD4, by dividing the boundary curves BOD1 and BOD5, which form long sides facing each other, into four, for example, one boundary curve BOD
1 is divided by three dividing points QI0, QgoSQ3 (1 into four triangular unit areas UAI i UAI 2,
Similarly, the other boundary curve BOD5 is divided into four triangular unit areas UA31 . When extracting UA32, UA33, and UA34, the following problems arise.

すなわち、三角形単位領域UAII−UA14、UA3
1〜UA34を切り出すことによって陰影処理をすると
、比較的長い範囲に亘って湾曲する境界曲線BOD 1
及びBOD5に対して、隣合う分割点について、切り出
された三角形単位領域の1辺を形成する直線との間のギ
ャップGUP 1及びGUP2に陰影処理ができない部
分が生ずる。
That is, triangular unit areas UAII-UA14, UA3
When shading processing is performed by cutting out 1 to UA34, the boundary curve BOD 1 curves over a relatively long range.
With respect to BOD5 and GUP1, gaps GUP1 and GUP2 between adjacent dividing points and straight lines forming one side of the cut out triangular unit region have portions where shading cannot be performed.

これらのギャップCUP 1及びGUP2は、境界曲線
BOD1及びBOD5が自然に湾曲して曲線感があるの
に対して、陰影処理を分割点を結ぶ曲線を境として実行
するために、陰影処理された部分によって直線感が出る
結果になり、陰影処理をしたためにかえって不自然な印
象が生ずるおそれがある。
While the boundary curves BOD1 and BOD5 are naturally curved and have a curved feel, these gaps CUP 1 and GUP 2 are shaded parts because shading is performed using the curve connecting the dividing points as a boundary. This results in a straight-line feel, and the shadow processing may create an unnatural impression.

本発明は以上の点を考慮してなされたもので、陰影処理
のために自由曲面を形成するパッチから三角形単位領域
を切り出す際に自由曲面の曲線感を失わせないようにし
た陰影表示方法を提案しようとするものである。
The present invention has been made in consideration of the above points, and provides a shading display method that does not lose the curved feel of a free-form surface when cutting out a triangular unit area from a patch forming a free-form surface for shading processing. This is what I am trying to propose.

E問題点を解決するための手段 かかる問題点を解決するため本発明においては、1つの
パッチS (un vl から多数の三角形単位領域U
Aを切り出して当該各三角形単位領域UAについて陰影
処理を実行する陰影表示方法において、パッチS (1
1+ vl から切り出すべき三角形単位領域UAの分
割数を、パッチS (un Vl の境界曲線BODl
〜BoD4と、当該境界曲線BODI−BOD4に沿っ
て切り出される三角形単位領域UAの1辺との間の誤差
が所定値より小さくなるような値に選定するようにする
Means for Solving Problem E To solve this problem, in the present invention, a large number of triangular unit areas U
In a shading display method in which a patch S (1
The number of divisions of the triangular unit area UA to be cut out from 1+ vl is determined by the boundary curve BODl of patch S (un Vl
A value is selected such that the error between ~BoD4 and one side of the triangular unit area UA cut out along the boundary curve BODI-BOD4 is smaller than a predetermined value.

F作用 パッチS iu+ vl の境界曲線に沿って切り出さ
れる三角形単位領域UAの1辺は、直線であるので、パ
ッチS (un v)の境界曲線BODI 〜BOD4
とは原理上−敗しない。
Since one side of the triangular unit area UA cut out along the boundary curve of the F-action patch S iu+ vl is a straight line, the boundary curve BODI to BOD4 of the patch S (un v)
In principle - don't lose.

しかし、その誤差δを所定値より小さくするように三角
形単位領域UAの分割数を選定すれば、実用上境界曲線
BOD1〜BODAが本来もっている曲線惑を失わせな
いような陰影をパッチS (un vl につけること
ができる。
However, if the number of divisions of the triangular unit area UA is selected so as to make the error δ smaller than a predetermined value, the patch S (un It can be attached to vl.

G実施例 以下図面について本発明の一実施例を詳述する。G example An embodiment of the present invention will be described in detail below with reference to the drawings.

第1図において、1つのパッチS (、,1vl の境
界曲線BOD上の2つの点Q、及びQtの線分を考える
とき、点Q、及びQl間の距離が微小であるとすれば、
境界曲線BODは一平面上の曲線と考えることができ、
かつ点Q、及びQ2の曲率半径ρ1及びρ8は、曲率中
心0に対して次式2式%(1) のように互いに等しい値ρであると考えることができ、
従って点Q、及びQ、間の曲線は円弧(これを円弧Ql
−Qtで表す)であると考えることができる。なお、(
1)式において、 ρイは円弧Q + −Q tの中点
Q、の曲率半径である。
In Fig. 1, when considering two points Q and a line segment Qt on the boundary curve BOD of one patch S (, 1vl), if the distance between the points Q and Ql is infinitesimal, then
The boundary curve BOD can be considered as a curve on one plane,
And the curvature radii ρ1 and ρ8 of points Q and Q2 can be considered to be equal values ρ as shown in the following equation 2 % (1) with respect to the center of curvature 0,
Therefore, the curve between points Q and Q is a circular arc (this can be called an arc Ql
−Qt). In addition,(
In equation 1), ρi is the radius of curvature of the midpoint Q of the arc Q + −Q t.

このような仮定の下に、点Q、及び02間に引いた直線
(これを直線Q、−Q、で表す)が、切り出した三角形
単位領域の一辺であるとすると、円弧Q、−Q、の中点
QI4及び曲率中心0を結ぶ直線Q、−0と、直線Q、
−Q、とのなす角は直角になり、かつ直線Q、−0と直
線Qg−0とがなす角をθとすれば、直線QM−0と直
線Q1−0とがなす角もθとなる。
Under this assumption, if the straight line drawn between points Q and 02 (represented by straight lines Q, -Q) is one side of the cut out triangular unit area, then the arcs Q, -Q, The straight line Q, -0 connecting the midpoint QI4 and the center of curvature 0, and the straight line Q,
-Q, is a right angle, and if the angle between straight line Q, -0 and straight line Qg-0 is θ, then the angle between straight line QM-0 and straight line Q1-0 is also θ. .

そして直vAQ、−Qtの中点Q。。及び曲率中心0間
の距離をdとし、かつ直fiQイ。−Q2の長さをL/
2とすれば、直線Q、。−Q、の長さもL/2となる。
and the midpoint Q of direct vAQ, -Qt. . and the distance between the centers of curvature 0 is d, and the straight line fiQi. −Length of Q2 is L/
2, then the straight line Q. The length of -Q is also L/2.

このような関係から、境界曲線BOD上の中点QMから
曲率中心Oまでの距離と、直線Q、、−0の長さdとの
誤差δは、次式 %式%(2) として表すことができると共に、直線Q、。−Qlの長
さL/2及び直線Q。。−Q2の長さL/2は、□−ρ
 sinθ          ・・・・・・ (3)
と表すことができる。
From this relationship, the error δ between the distance from the midpoint QM on the boundary curve BOD to the center of curvature O and the length d of the straight line Q, -0 can be expressed as the following formula % Formula % (2) , and the straight line Q. - Length L/2 of Ql and straight line Q. . -The length L/2 of Q2 is □-ρ
sinθ・・・・・・(3)
It can be expressed as.

この誤差δは、第5図について上述した境界曲線BOD
1又はBOD5と、切り出された三角形単位領域UAI
I〜UA14又はUA31〜UA34の対向する1辺と
のギャップGUP 1及びGUP2の幅を表している。
This error δ is determined by the boundary curve BOD described above with respect to FIG.
1 or BOD5 and the cut out triangular unit area UAI
It represents the width of the gap GUP1 and GUP2 between I to UA14 or UA31 to UA34 on one opposing side.

(2)式からcosθは sinθ=□       ・・・・・・(5)2ρ となる。ここで sin”θ+cos鵞θ=1      ・旧・・(6
)の関係があるから、(6)式に(4)式及び(5)式
を代入すれば ・・・・・・(7) となり、これを点Q、及び02間の距離(すなわち直線
Q、−Q!の長さ)Lについて整理するとL”−4δ(
2ρ−δ)    ・・・・・・(8)の関係が得られ
る。
From equation (2), cos θ becomes sin θ=□ (5) 2ρ. Here, sin” θ + cos θ = 1 Old... (6
), so by substituting equations (4) and (5) into equation (6), we get (7), which can be calculated as the distance between points Q and 02 (that is, the straight line Q , -Q! length)L''-4δ(
2ρ−δ) . . . The relationship (8) is obtained.

(8)式において誤差δが発生したときには、δ≧O・
・・・・・(9) 2ρ−δ≧O・・・・・・(10) の関係が成り立つ、因に境界面!BODは点Q1及び0
8間が微小であることに基づいて曲率中心0に対して円
弧Q、−Qtが形成されると考えているので、誤差δは
常に正であることから(9)式が成り立つ、また通常の
境界曲線BODにおいては、誤差δが曲率半径ρより小
さいことから(10)式が成り立つ。
When error δ occurs in equation (8), δ≧O・
・・・・・・(9) 2ρ−δ≧O・・・・・・(10) The following relationship holds true, because of the boundary surface! BOD is point Q1 and 0
Since the arcs Q and -Qt are considered to be formed with respect to the center of curvature 0 based on the fact that the distance between In the boundary curve BOD, since the error δ is smaller than the radius of curvature ρ, equation (10) holds true.

従って(8)式の関係から直線Q、−Q!の長さしを として求めることができる。Therefore, from the relationship in equation (8), the straight lines Q, -Q! measure the length of It can be found as

このようにして曲率中心0から円弧Q + −Q tを
見たとき、その弦を表す直線Q I−Q zの長さを曲
率半径ρと誤差δとで表すことができるようにしたので
、枠組み空間に張られたパッチS (u+ V)につい
て、陰影処理に用いる三角形単位領域UAを切り出した
とき(第5図)、境界曲線BOD1又はBOD5に許容
し得ない程度の幅を有するギャップGUPI及びGUP
 2が生じた場合には、そのギャップGUPI及びGU
P2の最大幅が、(11)式の誤差δに対応するとして
、当該誤差δが許容できる値以下になるように直11J
I Q l−Q m間の長さしを選定する。
In this way, when looking at the arc Q + -Q t from the center of curvature 0, we have made it possible to express the length of the straight line Q I - Q z representing its chord by the radius of curvature ρ and the error δ, so When the triangular unit area UA used for shading processing is cut out for the patch S (u+V) stretched in the framework space (Fig. 5), there are gaps GUPI and G.U.P.
2 occurs, the gap GUPI and GU
Assuming that the maximum width of P2 corresponds to the error δ in equation (11), the straight line 11J is set so that the error δ is below an allowable value.
Select the length between I Q l and Q m.

か(して湾曲している境界曲線について、三角形単位領
域UAを切り出して線形補間の手法によって陰影処理を
する際に、実用上三角形単位領域UAの1辺と境界曲線
との間のギャップによって曲線感を失わせるような陰影
をつけるおそれを有効に回避し得る。
When cutting out a triangular unit area UA and performing shading processing using a linear interpolation method for a curved boundary curve, in practice, the gap between one side of the triangular unit area UA and the boundary curve It is possible to effectively avoid the possibility of creating shading that would cause loss of impression.

このような三角形単位領域UAの分割処理は、コンピュ
ータによって第2図に示す処理手順を実行することによ
り実現し得る。
Such division processing of the triangular unit area UA can be realized by executing the processing procedure shown in FIG. 2 by a computer.

第2図において、ステップSP1において分割処理プロ
グラムが開始されると、コンピュータはステップSP2
においてパッチデータを読み込んでワイヤフレーム表示
をする。このパッチデータはデザイナが自由曲面をデザ
インする際に、別途3次元空間に境界曲線網を枠組みす
ることによって得られる。
In FIG. 2, when the division processing program is started at step SP1, the computer starts at step SP2.
Load the patch data and display it as a wireframe. This patch data is obtained by separately framing a boundary curve network in a three-dimensional space when a designer designs a free-form surface.

この表示状態において、オペレータはワイヤフレーム表
示された自由曲面について、陰影処理をするに際して不
適当なパッチを含む不具合があるか否かをステップSP
3において目視確認し、不具合があるとの判断結果が得
られたときステップSP4に移って当該不具合があるパ
ッチを複数の領域に分割して三角形単位領域を切り出し
た後ステップSP5に移る。
In this display state, the operator checks in step SP whether there are any defects including inappropriate patches when performing shading processing on the free-form surface displayed in wireframe.
In step 3, the patch is visually checked and when it is determined that there is a defect, the process moves to step SP4, where the patch with the problem is divided into a plurality of areas and triangular unit areas are cut out, and then the process moves to step SP5.

このステップSP3及びSF3の処理手順は、パッチの
分割の仕方が適正でない場合には、各パッチについて陰
影処理をしたとき、隣合うパッチの境界曲線の位置に、
陰影処理ができない部分が穴となって残るおそれがある
ので、このパッチ相互間の穴を発生させないように防止
する。
In the processing procedure of steps SP3 and SF3, if the method of dividing the patches is not appropriate, when the shading process is performed for each patch, the position of the boundary curve of the adjacent patch is
Since there is a risk that the portions that cannot be shaded will remain as holes, the formation of holes between the patches is prevented.

ステップSP3において不具合なパッチが発見できなか
ったときには、直ちにステップSP5に移る。
If no defective patch is found in step SP3, the process immediately moves to step SP5.

このステップSP5は、(11)式について上述したよ
うに、共有境界BODと、切り出される三角形単位領域
UAの共有境界BODに沿う1辺との間の誤差δの値を
指定するステップで、オペレータがこの誤差δを指定す
ると、コンピュータはステップSP6に移って当該誤差
δに対応する三角形単位領域UAの分割数を決定して分
割処理を実行する。
This step SP5 is a step in which the operator specifies the value of the error δ between the shared boundary BOD and one side along the shared boundary BOD of the triangular unit area UA to be cut out, as described above regarding equation (11). After specifying this error δ, the computer moves to step SP6, determines the number of divisions of the triangular unit area UA corresponding to the error δ, and executes the division process.

このステップSP5及びSF3の処理は、第5図につい
て上述したように、1つのパッチから三角形単位領域を
切り出す際に当該パッチが本来境界曲線にもっている曲
線感を失わないようにするための再分割処理で、コンピ
ュータはその処理結果をステップSP7において確認し
、実用上未だギャップGUP 1及びGUP2があると
き、ステップSP7において肯定結果が得られることに
より、上述のステップSP5に戻って誤差δの値の指定
及び当該誤差δに対応する三角形単位領域UAの分割を
繰り返す。
As described above with reference to FIG. 5, the processing in steps SP5 and SF3 is performed to redivide the patch so as not to lose the curvilinear feeling that the patch originally has as a boundary curve when cutting out a triangular unit area from one patch. In the process, the computer confirms the processing result in step SP7, and if there are still gaps GUP 1 and GUP2 in practice, a positive result is obtained in step SP7, so the computer returns to step SP5 described above and calculates the value of the error δ. The designation and division of the triangular unit area UA corresponding to the error δ are repeated.

かくして実用上曲線感を失わせるようなギャップGUP
I及びGUP2が生じないような誤差δを設定すること
によって対応する三角形単位領域UAの分割数が限定さ
れ、その分割数によってパッチS (an v)から実
用上ギャップCUP 1及びGUP2を生じさせないよ
うに三角形単位領域UAの分割をなし得るような条件を
設定し得る。
In this way, the gap GUP loses the sense of curve in practical use.
By setting the error δ such that I and GUP2 do not occur, the number of divisions of the corresponding triangular unit area UA is limited, and by the number of divisions, it is possible to prevent gaps CUP1 and GUP2 from occurring from patch S (an v) in practice. Conditions can be set such that the triangular unit area UA can be divided.

このような処理が終了したとき、コンピュータはステッ
プSP8に移って当該分割処理プログラムを終了する。
When such processing is completed, the computer moves to step SP8 and ends the division processing program.

上述の実施例によれば、陰影処理における線形補間を実
行するために、1つのパッチから三角形単位領域UAを
切り出す際に、境界曲線BODに対する分割数を必要に
応じて設定し直すようにしたことにより、パッチが本来
もっている境界曲線の曲線感を失わせないような陰影を
つけることができる。
According to the above-described embodiment, in order to perform linear interpolation in shading processing, when cutting out a triangular unit area UA from one patch, the number of divisions for the boundary curve BOD is reset as necessary. By doing this, it is possible to add shading without losing the curvaceous feeling of the boundary curve that the patch originally has.

H発明の効果 上述のように本発明によれは、1つのパッチから三角形
単位領域を切り出して陰影処理をする際に、境界曲線に
対する三角形単位領域の分割数を必要に応じて選定し得
るようにしたことにより、パッチの境界曲線が本来もっ
ている曲線感を失わせないような陰影を容易に付けるこ
とができる。
H Effects of the Invention As described above, according to the present invention, when a triangular unit area is cut out from one patch and subjected to shading processing, the number of divisions of the triangular unit area with respect to the boundary curve can be selected as necessary. By doing this, it is possible to easily add shading to the boundary curve of the patch without losing its original curved feel.

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

第1図は本発明による陰影表示方法の一実施例を示す路
線図、第2図はその処理手順を示すフローチャート、第
3図及び第4図は1つのパッチから三角形単位領域を切
り出す処理の説明に供する路線図、第5図は陰影処理が
できない部分の説明に供する路線図である。 S (un vl ”” =”パッチ、BOD 1〜B
OD4・・・・・・境界曲線、cupt、GUP 2・
・・・・・ギャップ。
FIG. 1 is a route map showing an embodiment of the shading display method according to the present invention, FIG. 2 is a flowchart showing the processing procedure, and FIGS. 3 and 4 are explanations of the process of cutting out a triangular unit area from one patch. FIG. 5 is a route map used to explain the parts that cannot be shaded. S (un vl "" = "patch, BOD 1~B
OD4...Boundary curve, cupt, GUP 2.
·····gap.

Claims (1)

【特許請求の範囲】 1つのパッチから多数の三角形単位領域を切り出して当
該各三角形単位領域について陰影処理を実行する陰影表
示方法において、 上記パッチから切り出すべき上記三角形単位領域の分割
数を、上記パッチの境界曲線と当該境界曲線に沿つて切
り出される三角形単位領域の1つの辺との間の誤差が所
定値より小さくなるような値に、選定する ことを特徴とする陰影表示装置。
[Scope of Claim] In a shading display method in which a large number of triangular unit areas are cut out from one patch and shading processing is performed on each of the triangular unit areas, the number of divisions of the triangular unit area to be cut out from the patch is determined by the number of divisions of the triangular unit area to be cut out from the patch. A shadow display device characterized in that a value is selected such that an error between a boundary curve and one side of a triangular unit area cut out along the boundary curve is smaller than a predetermined value.
JP61151044A 1986-06-27 1986-06-27 Shade displaying method Pending JPS638881A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61151044A JPS638881A (en) 1986-06-27 1986-06-27 Shade displaying method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61151044A JPS638881A (en) 1986-06-27 1986-06-27 Shade displaying method

Publications (1)

Publication Number Publication Date
JPS638881A true JPS638881A (en) 1988-01-14

Family

ID=15510071

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61151044A Pending JPS638881A (en) 1986-06-27 1986-06-27 Shade displaying method

Country Status (1)

Country Link
JP (1) JPS638881A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2514967B (en) * 2012-02-27 2018-02-07 Otis Elevator Co Elevator control system
CN112304863A (en) * 2020-11-23 2021-02-02 西安热工研究院有限公司 Method for evaluating adhesion of oxide skin on inner wall of superheater reheater pipe of thermal power plant

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2514967B (en) * 2012-02-27 2018-02-07 Otis Elevator Co Elevator control system
CN112304863A (en) * 2020-11-23 2021-02-02 西安热工研究院有限公司 Method for evaluating adhesion of oxide skin on inner wall of superheater reheater pipe of thermal power plant

Similar Documents

Publication Publication Date Title
Gouraud Continuous shading of curved surfaces
US6600485B1 (en) Polygon data generation method and image display apparatus using same
US7274364B2 (en) System and method for defining T-spline and T-NURCC surfaces using local refinements
US5283860A (en) System and method for displaying trimmed surfaces using bitplane masking
EP2523166B1 (en) Method and device for rendering areas bounded by curves using a gpu
EP0576218B1 (en) A method generating a display of a surface, and an apparatus for carrying out such a method
JP3467725B2 (en) Image shadow removal method, image processing apparatus, and recording medium
JPS638881A (en) Shade displaying method
JP4056118B2 (en) Image processing device
JP3187808B2 (en) Object surface shape data creation device
US6774894B1 (en) Processing method for rendering a 3-dimensional arrow object
JPS638882A (en) Shade displaying method
JP2600670B2 (en) Free-form surface creation method
JP2701252B2 (en) Object surface shape data creation method
JP3187810B2 (en) Object surface shape data creation device
JP2726134B2 (en) 3D model sampling and normal vector calculation method
JP3823596B2 (en) Data compression method for motion simulation
JP2638852B2 (en) Method of generating a fillet surface
JP3187809B2 (en) Object surface shape data creation method
JP3148792B2 (en) Method and apparatus for generating free-form surface
JP3187811B2 (en) Object surface shape data creation method
JPS6383871A (en) Shadow display method
JP2600671B2 (en) Free-form surface creation method
JP3187814B2 (en) Method and apparatus for creating surface shape data of object
Oh et al. G1 Bézier surface interpolation with T-junctions at a 3-valent singular vertex