WO2004055697A1 - 処理方法、処理装置及びコンピュータプログラム - Google Patents

処理方法、処理装置及びコンピュータプログラム Download PDF

Info

Publication number
WO2004055697A1
WO2004055697A1 PCT/JP2002/013111 JP0213111W WO2004055697A1 WO 2004055697 A1 WO2004055697 A1 WO 2004055697A1 JP 0213111 W JP0213111 W JP 0213111W WO 2004055697 A1 WO2004055697 A1 WO 2004055697A1
Authority
WO
WIPO (PCT)
Prior art keywords
graphic
data
coordinates
attribute
elements
Prior art date
Application number
PCT/JP2002/013111
Other languages
English (en)
French (fr)
Inventor
Mari Omura
Original Assignee
Fujitsu Limited
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 Fujitsu Limited filed Critical Fujitsu Limited
Priority to PCT/JP2002/013111 priority Critical patent/WO2004055697A1/ja
Priority to JP2004560562A priority patent/JPWO2004055697A1/ja
Publication of WO2004055697A1 publication Critical patent/WO2004055697A1/ja
Priority to US11/147,428 priority patent/US7554547B2/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics

Definitions

  • the present invention relates to a processing method using a CAD system for processing graphic data representing a graphic obtained by combining graphic elements such as an elliptic arc, a line segment, and a circle, a processing apparatus to which the method is applied, and an apparatus for realizing the apparatus.
  • a CAD (Computer Aided Design) system that processes graphic data representing a graphic that combines graphic elements such as elliptical arcs (free curves), line segments, and circles is widely used.
  • the graphic data processed by the CAD system differs in file format such as the data structure and the representation on the file depending on the CAD system to be processed.
  • the content differs depending on the file format.
  • graphic data in the file format specified as SXF is said to have a large processing load and low practicality to be used as a data format for commonly used CAD systems due to large amounts of data. There are disadvantages.
  • an orderer who orders a certain building requests a designer to design
  • the designer When requesting construction from a constructor and maintenance from a maintainer, the designer first converts the graphic data designed in the file format corresponding to the CAD system of specification A into the SXF format, and then converts the graphic data in the SXF format. Deliver the data to the client.
  • the orderer supplies the SXF format graphic data to the maintainer, and the maintainer converts the supplied SXF format graphic data to a file format compatible with the CAD system of specification C and performs various processing. Acting.
  • figure shown by the figure data being the same means that the figure data such as elliptical arcs, line segments, and circles are the same and that the same figure can be output.
  • the conventional comparison of graphic data identity is to compare graphic data in the same file format with the same CAD system.
  • the comparison method is a graphic element data design that shows the graphic elements that make up the graphic data. Is a brute force comparison.
  • FIG. 7 is an explanatory view conceptually showing graphic element data used for comparison of conventional graphic data.
  • the graphic element data contains the graphic element attributes such as the type, color, line type, and line width of the graphic element, and the arrangement coordinates indicating the position and shape of the graphic element as coordinates. Shown as a record.
  • the type of a graphic element is information indicating the type of a graphic element such as an elliptical arc, a line segment, and a circle.
  • the graphic element color is information indicating the color of the graphic element such as yellow, red, and green.
  • the line type of the graphic element is information indicating the type of a line forming the graphic element such as a broken line, a solid line, and a dashed line.
  • the line width of a graphic element is information indicating the width of a line forming a graphic element such as 0.8, 1.0, and 0.6.
  • the arrangement coordinates are information such as coordinates indicating the position and shape at which the graphic element is arranged, and the coordinates of both ends when the graphic element type is a line segment, and the center coordinates when the graphic element type is a circle.
  • the type of the graphic element is an elliptical arc
  • the coordinates and the radius through which the elliptical arc passes are the arrangement coordinates.
  • the coordinates of the start position of the character, the character string, and the like are the arrangement coordinates.
  • the identity of the graphic data is compared by comparing all of the graphic element data indicating the graphic elements constituting the graphic data on a brute force basis.
  • a system for judging identity by comparing attributes (shape parameters) of graphic data (CAD data) in this way is disclosed in, for example, Japanese Patent Application Laid-Open No. Hei 6-83913.
  • the conventional method does not envisage comparing the identity of graphic data in different file formats, such as graphic data in the file format corresponding to the CAD system of specification A and graphic data in the SXF format. There is.
  • the number of arrangement coordinates to be compared is large, and the arrangement coordinates include values other than integers such as decimals with large processing loads, so that the processing load becomes larger.
  • the present invention has been made in view of such circumstances, and it is possible to compare a comparison file by generating a comparison file that records a table in which information on graphic elements is aggregated for each attribute.
  • a processing method capable of determining the identity of graphic data in different file formats because it becomes possible.
  • the main purpose of the present invention is to provide a processing device to which the method is applied and a computer program for realizing the device. Furthermore, the present invention determines the identity of graphic data by comparing the number of tables aggregated for each attribute and the number of graphic elements included in the table, thereby reducing the number of items to be compared.
  • Another object is to provide a computable program or the like which can reduce the processing load such as the processing time since the exponent is an integer value.
  • Still another object is to provide a computer program that can reduce a processing load such as a processing time.
  • the present invention determines unnecessary ones as being not the same at that point in time.
  • Another object of the present invention is to provide a computer D-gram or the like capable of reducing the processing load such as a long processing time. Disclosure of the invention
  • a processing method is a processing method for processing graphic data representing a graphic obtained by combining graphic elements, wherein information on graphic elements constituting the graphic data is aggregated for each attribute of the graphic element.
  • the graphic element data is aggregated for each attribute such as the type, color, line type, and line width of the graphic element constituting the graphic data, and the data aggregated for each attribute is compared with data for comparison. It is possible to determine the identity of graphic data by comparing data for comparison, and thus it is possible to determine the identity of graphic data of different specifications.
  • a processing device is a processing device for processing graphic data representing a combined graphic of a graphic element indicated by arrangement coordinates indicating a position and a shape to be arranged as coordinates, wherein the graphic element circumscribes each graphic element.
  • the arrangement coordinates and the range coordinates indicating the position and shape of the graphic element are aggregated for each attribute such as the type, color, line type, and line width of the graphic element constituting the graphic data, Can be used to compare graphics data with different specifications.It is possible to generate a comparison file that records the arrangement coordinates and range coordinates for each attribute.
  • the processing device is the processing device according to the second invention, further comprising a first table and a second table in which graphic elements indicating graphic elements constituting the first graphic data are aggregated by attribute.
  • the comparison file having the first table generated from the first graphic data is compared with the comparison file having the second table generated from the second graphic data.
  • a computer program is a computer program that causes a computer to process graphic data representing a combined graphic of graphic elements indicated by arrangement coordinates indicating arrangement positions and shapes as coordinates.
  • a step of aggregating the range coordinates for each attribute of the graphic element is a computer to process graphic data representing a combined graphic of graphic elements indicated by arrangement coordinates indicating arrangement positions and shapes as coordinates.
  • the arrangement coordinates and the range coordinates indicating the position and shape of the graphic element are aggregated for each attribute such as the type, color, line type, and line width of the graphic element constituting the graphic data. It is possible to generate a comparison file that records the arrangement coordinates and range coordinates for each attribute, which can be used for comparing graphic data with different specifications.
  • the computer program according to the fifth invention is the computer program according to the fourth invention, wherein the computer comprises a first table and a second graphic data in which graphic element data indicating graphic elements constituting the first graphic data are aggregated by attribute. To compare the second table in which graphic element data indicating the graphic elements to be aggregated by attribute, and determine the identity of the first graphic data and the second graphic data based on the comparison result by the computer And the steps to be performed.
  • a comparison file recording a first table generated from the first graphic data and a comparison file recording a second table generated from the second graphic data are provided.
  • the computer program according to the sixth invention is the computer program according to the fourth invention, wherein, in the computer, the number of the first tables and the second graphic data in which the graphic element data indicating the graphic elements constituting the first graphic data are aggregated by attribute.
  • the second procedure for comparing the number of graphic elements shown in the second table with the number of graphic elements shown in the second table and the number of the graphic elements shown in the second table correspond to the third step.
  • the third computer that compares the range coordinates included in the graphic element table of the first table and the range coordinates included in the second table graphic element table has: By comparing the third procedure If it is determined that the range coordinates included in all the figure element data corresponding to all of the corresponding graphic elements match, a procedure for making a determination as to whether or not the figure elements whose range coordinates match in each table coincides, In addition, when it is determined that there is a graphic element table located within a range in the table, the and the second table of the graphic element and the second table corresponding to the attribute of the corresponding graphic element are determined. Ratio of the arrangement coordinates of the graphic elements
  • the identity of the graphic data is determined to determine the complexity of the ellipse arc. Even so, since there are only two points to be compared, the processing load such as processing time can be greatly reduced.
  • the computer program according to the seventh invention is the computer program according to the sixth invention, wherein when the computer determines in the first step, the second step, the third step or the fourth step that they are not the same, the first figure and the second It is characterized in that a procedure for determining that the figures are not the same is executed.
  • the computer program according to the seventh invention in the process of sequentially comparing the number of tables, the number of graphic elements, the range coordinates, and the like, if even one is different, it is determined that they are not the same at that point in time. Since it is possible to terminate the comparison processing when it is determined that there is no processing, unnecessary comparison processing is not performed, and the processing load such as processing time can be reduced.
  • a computer program according to an eighth aspect is the computer program according to any one of the fourth to seventh aspects, wherein the attribute is a type, a color, a line type, and a line width of the graphic element.
  • a comparison file used for comparing graphics data of different specifications by aggregating graphics element data by attributes such as color, line type and line width of the graphics elements. Can be generated.
  • FIG. 1 is a block diagram showing a configuration of a processing device of the present invention
  • FIG. 2 is a flowchart showing a comparison file generation process of the processing device of the present invention
  • FIG. 3 is a range calculated by the processing device of the present invention.
  • FIG. 4 is an explanatory diagram for explaining coordinates
  • FIG. 4 is an explanatory diagram conceptually showing a table for each attribute included in a comparison file generated by the processing device of the present invention
  • FIG. 5 is a graphic data comparison of the processing device of the present invention.
  • FIG. 6 is a flowchart showing the processing
  • FIG. 6 is a flowchart showing the graphic data comparison processing of the processing device of the present invention
  • FIG. 7 is a conceptual diagram showing the graphic element data used in the conventional graphic data comparison.
  • FIG. 1 is a block diagram showing the configuration of the processing apparatus of the present invention.
  • reference numeral 10 denotes a processing unit used in a CAD (Computer Aided Design) system.
  • the processing unit 10 is configured using a computer such as a general-purpose computer, and is a computer for the processing unit of the present invention.
  • One-night program PG, CD-ROM or other recording medium that records information such as overnight data Reads various information from REC
  • auxiliary storage means 12 and auxiliary storage means 12 such as CD-ROM drive Recording means 13 such as a hard disk for recording information.
  • the computer program PG of the present invention and various kinds of information such as data are read from the recording means 13, and the information is temporarily stored in the RAM 14 for temporarily storing the information, and is executed by the CPU 11. It operates as the processing device 10.
  • the CPU 11 may be configured as a single chip, but high-speed processing can be realized by combining it with a dedicated processor such as an image processing processor.
  • processing device 10 is provided with input means 15 such as a mouse, evening tablet and keyboard, and output means 1 such as a monitor, a printer and a plotter.
  • input means 15 such as a mouse, evening tablet and keyboard
  • output means 1 such as a monitor, a printer and a plotter.
  • the recording means 13 includes not only the computer program PG of the present invention, but also a computer program for CAD for creating graphic data representing a graphic combining graphic elements such as elliptical arcs (free curves), lines and circles.
  • the computer program PG of the present invention is used as a support tool for processing graphic data created by the processing of a computer program for CAD to determine the identity of graphic data. Can be
  • the graphic data created by the processing of the computer program for CAD is composed of graphic elements such as elliptical arcs, line segments, and circles, and the graphic element data indicating the graphic elements are arranged and arranged with the attributes of the graphic elements. Information such as arrangement coordinates indicating the position and the shape as coordinates is included.
  • the attribute of the graphic element data is information such as the type, color, line type, and line width of the graphic element.
  • the type of a graphic element is information indicating the type of a graphic element such as an elliptical arc, a line segment, and a circle.
  • the color of a graphic element is information indicating the color of the graphic element such as yellow, red, and green.
  • the line type of the graphic element is information indicating the type of a line forming the graphic element such as a broken line, a solid line, and a dashed line.
  • the line width of a graphic element is information indicating the width of a line forming a graphic element such as 0.8, 1.0, and 0.6.
  • the arrangement coordinates are information such as coordinates indicating the position and shape at which the graphic element is arranged, and coordinates of both ends when the graphic element is a line segment, coordinates and a radius of the center when the graphic element is a circle, If the graphic element is an elliptical arc, the coordinates through which the elliptical arc passes are the arrangement coordinates.
  • the coordinates of the start position of the character and the character string are the arrangement coordinates.
  • arrangement coordinates indicating each graphic element are merely examples, and the coordinates of the starting point and the direction vector are used as the arrangement coordinates of the line segment, and the coordinates of three passing points are used as the arrangement coordinates of the circle. As long as the position and shape to be arranged can be specified, arrangement coordinates in other expressions than the above-described example may be used.
  • FIG. 2 is a flowchart showing a comparison file generation process of the processing device 10 of the present invention.
  • the processing device 10 of the present invention generates a comparison file used for comparing graphic data when comparing graphic data.
  • the processing device 10 Under the control of the CPU 11 which executes the computer program PG stored in the RAM 14, the processing device 10 is configured to control a pair of squares such as rectangles circumscribing the graphic elements constituting the graphic data to be compared.
  • the range coordinates indicating the coordinates of the corner vertices are calculated (S101).
  • FIG. 3 is an explanatory diagram illustrating range coordinates calculated by the processing device 10 of the present invention.
  • (A) in FIG. 3 shows the range coordinates of a graphic element whose type is a line segment.
  • the range coordinates referred to here are generally called extent coordinates, and are coordinates of diagonal vertices of a rectangle such as a rectangle circumscribing the graphic element.
  • (B) of FIG. 3 shows the range coordinates of a graphic element whose type is an elliptical arc.
  • (C) in FIG. 3 shows the range coordinates of a graphic element whose type is an elliptical arc.
  • a complex figure such as an elliptical arc can be represented by two coordinates in the same way as a line segment.
  • the rectangle is a rectangle consisting of four sides parallel to the orthogonal coordinate axes, but if it is not a rectangular coordinate system, it is a rectangle such as a parallelogram .
  • the rectangle here refers to a square in which all four interior angles are right angles, including a square.
  • the processing device 10 distributes, as graphic element data indicating graphic elements constituting the graphic data, under the control of the CPU 11 for executing the computer program PG stored in the RAM I4.
  • the set coordinates and range coordinates are aggregated by attribute (S102), and a comparison file is created by recording the aggregated graphic element data in a table by attribute (S102).
  • FIG. 4 is an explanatory view conceptually showing a table for each attribute included in the comparison file generated by the processing device 30 of the present invention.
  • (A) in Fig. 4 shows that the type is elliptical arc, the color is yellow, the line type is dashed line, and the line width is
  • 0 • 8 is a table in which the graphic elements of the attribute are aggregated, and the arrangement coordinates and range coordinates of the graphic element of the attribute are recorded as a record.
  • Blue, line type is solid line and line width is 1-
  • FIGS. 5 and 6 are flowcharts showing the graphic data comparison processing of the processing apparatus 10 of the present invention.
  • the first graphic data and the second graphic data are used.
  • the first figure is compared by comparing the first table generated from the first figure data and the second table generated from the second figure data. Compare the identity of the data and the second graphic data.
  • the processing device 10 assigns, for each corresponding attribute, the graphic element data indicating the graphic element constituting the first graphic data to the attribute.
  • the second table in which the number of the first tables separately aggregated and the graphic element data indicating the graphic elements that constitute the second graphic data are aggregated by attribute Compare the number of (S201).
  • step S S is executed by the control of the CPU 11 that executes the computer program PG stored in the RAM 14.
  • the control of the CPU 11 for executing the computer program PG stored in the RAM 14 causes the graphic element data recorded in the first table to be compared in the step S 206. If it is determined that the figure element data having the same range coordinates as the range coordinates of the second table is not included in the second table (S207: NO), the first figure data and the second figure data are It is determined that they are not the same (S203), and the graphic data comparison processing ends.
  • the graphic element data having the same range coordinates as the range coordinates of the graphic element data included in one table is included in the other table in all the graphic element data of the attribute. If it is determined that at least one of the graphic element data contained in one of the tables is not included in the other table, the figure element data in the same range coordinates as the range coordinates in the evening is determined. It is determined that the first graphic data and the second graphic data are not the same.
  • the processing device 10 under the control of the CPU 11 executing the computer program stored in the RAM 14, in the comparison in step S 207, the corresponding attributes are aggregated in the first table. If the range coordinates of the figure element data are all the same as the range coordinates of the figure data aggregated in the second table (S207: YES), the range coordinates match in each table of the attribute. Determines the presence or absence of graphic element data 6 Separate (S208).
  • step S 208 the figure coordinates whose range coordinates match in each table of the attribute are compared.
  • S209: YES it is determined that all the graphic elements aggregated in the table of the attribute are the same (S210).
  • step S209 If it is determined in step S209 that there is no graphic element data whose range coordinates match, that is, if it is determined that the range coordinates of the graphic element data are different from each other, the graphic elements have the same attribute and range coordinates but are different. It is judged that the possibility is low, and it is determined that all the graphic elements aggregated in the table of the attribute are the same.
  • the range coordinates match in the attribute table in the comparison in step S 208. If it is determined that there is graphic element data (S209: NO), the arrangement coordinates corresponding to the attribute and summarized in the first table and the arrangement coordinates aggregated in the second table are compared ( S2 1 1).
  • step S209 If it is determined in step S209 that there is graphic element data having the same range coordinates, that is, if there is a plurality of graphic element data having the same range coordinates in the table of the attribute, all information is compared for the graphic element. It is determined that it is necessary to do.
  • the computer program stored in the RAM 14 is stored.
  • step S 210 all the graphic elements aggregated in the attribute table in step S 210 are the same under the control of the CPU 11 executing the computer program stored in the RAM 14.
  • step S213 the presence or absence of an attribute that has not been compared in the range coordinates performed in step S206 and subsequent steps is determined (S213), and the attribute that has not been compared in the range coordinate is determined. If it is determined that there is (S213: YES), the step
  • step S213 under the control of the CPU 11 executing the computer program stored in the RAM I4, in the determination in step S213, it is determined that there is no attribute whose range coordinates have not been compared. (S213: NO), the first graphic data and the second graphic data are the same because all graphic element data in all corresponding tables are determined to be the same by comparison. Is determined (S2114), and the graphic data comparison processing ends.
  • step S206 In the comparison of the range coordinates performed in step S206 and the comparison of the arrangement coordinates performed in step S212, even if the coordinates do not completely match, the difference is set in advance. If they are within the error range, it is determined that they match.
  • the orderer requests the designer to design a certain building, and the construction
  • the file format of the CAD system created by the designer, the file format delivered by the designer to the orderer, supplied from the orderer to the installer, and converted by the installer File format, and the file format delivered by the designer to the orderer, and the file format supplied from the orderer to the maintainer and converted by the maintainer are different from each other. Since the sameness of the image data can be determined, it is possible to guarantee that the image data has not been improved.
  • the image file in one file format is converted into an image file in another file format, and the image data converted into another format is converted into an image file in another file format again. It is possible to determine the conversion accuracy of the image data by comparing the identity of the original image data in the file format with the reconverted image data in the file format. You.
  • the processing method, the processing device, and the computer program according to the present invention use the graphic data generated by the CAD system that processes the graphic data representing the graphic obtained by combining the graphic elements.
  • the arrangement coordinates and range coordinates that indicate the arrangement position and shape as coordinates are collected and recorded as a comparison file having a table for each attribute. Excellent effects are obtained, such as the ability to generate a comparison file used for comparing graphic data having different specifications.
  • the number of tables and graphic elements The number of items to be compared is small, and the number to be compared is an integer value. It has excellent effects such as reducing the processing load such as the processing time required for the comparison of data overnight.
  • the identity of the graphic data is determined, so that even a complicated graphic such as an elliptical arc can be compared. Since there are only two coordinates to be processed, it is possible to greatly reduce the processing load such as processing time, etc., and to achieve excellent effects.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Image Analysis (AREA)

Description

明糸田 ¾
処理方法、 処理装置及びコンピュータプログラム 技術分野
本発明は、 楕円弧、 線分及び円等の図形要素を組み合わせた図形 を示す図形データを処理する C ADシステムを用いた処理方法、 そ の方法を適用した処理装置及びその装置を実現するためのコンビュ —夕プログラムに関し、 特に 2つの図形の同一性を判定する処理方 法、 処理装置及びコンピュータプログラムに関する。 背景技術
楕円弧 (自由曲線)、 線分及び円等の図形要素を組み合わせた図形 を示す図形データを処理する C A D (Computer Aided Design) シ ステムが広く普及している。
C ADシステムにて処理される図形データは、 処理する C ADシ ステムによ りデ一夕構造及びファイル上の表現等のファイル形式が 異なっているため、 同じ図形を示す図形データであってもファイル 形式により異なった内容となる。
ところで国土交通省は、 公共事業のネッ トワーク上での情報共有 を目指し、 図面等の納品資料の電子化を推進する中で、 2 0 0 2年 1 0 月から図形データの電子納品フォーマッ トとして、 中立性及び 標準性の高い I S O規格 S T E P ZA P 2 0 2準拠の 「 S X F」 を 標準的なファイル形式として採用した。
ただし S X Fとして規定されたファイル形式の図形データは、 デ 一夕量が多い等の理由により、 一般的に用いられる C ADシステム のデータ形式として利用するには処理負荷が大きく実用性が低いと いう短所がある。
そこで例えばある建造物を発注する発注者が設計者に設計を依頼 し、 施工者に施工を依頼し、 保全者に保全を依頼する場合、 先ず設 計者が仕様 Aの C A Dシステムに対応するファイル形式で設計した 図形データを S X F形式に変換し、 S X F形式の図形データを発注 者に納品する。
そして発注者は S X F形式の図形データを施工者に供給し、 供給 者は供給された S X F形式の図形データを仕様 Bの C A Dシステム に対応するフアイル形式に変換した上で.各種処理を行う。
また発注者は S X F形式の図形デ一夕を保全者に供給し、 保全者 は供給された S X F形式の図形データを仕様 Cの C A Dシステムに 対応するファイル形式に変換した上で各種処理を行う という行為を 行っている。
このとき発注者が管理している図形データ、 設計者が納品した図 形データ、 施工者に供給された図形データ及び保全者に供給された 図形データに対して改竄等の不正行為が行われていないかを確認す ベく図形データが示す図形の同一性を確認する場合がある。
なお図形データが示す図形が同一とは、 図形データを構成する楕 円弧、 線分及び円等の図形要素が同じであり、 同じ図形を出力させ ることができるという ことをいう。
従来の図形デ一夕の同一性の比較は、 同じ C A Dシステムで同じ ファイル形式の図形データ同士を比較するものであり、 比較の方法 としては図形データを構成する図形要素を示す図形要素デ一夕を総 当たりで比較するという ものである。
第 7 図は従来の図形データの比較に用いられる図形要素データを 概念的に示す説明図である。
第 7 図に示すように図形要素データは、 図形要素の種別、 色、 線 種及び線幅等の図形要素の属性並びに配置される位置及び形状を座 標として示す配置座標が図形要素データ毎のレコードとして示され る。 図形要素の種別とは、 楕円弧、 線分及び円等の図形要素の種別を 示す情報である。
図形要素の色とは、 黄、 赤及び緑等の図形要素の色を示す情報で ある。
図形要素の線種とは、 破線、 実線及び一点鎖線等の図形要素を形 成する線の種類を示す情報である。
図形要素の線幅とは、 0 . 8 、 1 . 0及び 0 . 6等の図形要素を 形成する線の幅を示す情報である。
配置座標とは、 図形要素が配置される位置及び形状を示す座標等 の情報であり、 図形要素の種別が線分の場合には両端の座標、 図形 要素の種別が円の場合には中心の座標及び半径、 そして図形要素の 種別が楕円弧の場合には楕円弧が通過する座標等が配置座標となる。
なお図形要素の種別が文字である場合、 文字の開始位置の座標及 び文字列等が配置座標となる。
そして図形データを構成する図形要素を示す図形要素データの全 てを総当たりで比較することにより、 図形データの同一性を比較す る。
なお図形データの同一性を比較する状況としては上述した不正行 為の確認だけでなく、 夫々のファイル形式の変換が正確に行われて いるか否かを判別する場合等の様々な状況において必要とされる。
このように図形データ ( C A Dデータ) の属性 (形状パラメータ ) を比較することにより同一性を判定するシステムが、 例えば特開 平 6 — 8 3 9 1 3号公報に開示されている。
しかしながら従来の方法では、 仕様 Aの C A Dシステムに対応す るファイル形式の図形データ及び S X F形式の図形データの様に異 なるファイル形式の図形データの同一性を比較することは想定され ていないという問題がある。
また図形要素の種別、 色、 線種、 線幅及び座標等の全ての属性に ついて総当たりで比較を行うため処理時間等の処理負荷が大きいと いう問題がある。
特に自由曲線で る楕円弧については 比較すべき配置座標の数 が多く、 しかも配置座標は処理負荷の大さい小数等の整数以外の数 値を含むことから処理負荷がより大きくなるという問題がある。
さらに全ての図形要素について比較を行うため処理負荷が更に大 さくなるという問 苗が生じる。
本発明は斯かる事情に鑑みてなされたものであり、 図形要素に関 する情報を属性別に集約したテーブルを記録した比較用ファイルを 生成することによ り 、 比較用ファイル同士を比較することが可能と なるので異なるファィル形式の図形デー夕の同一性を判定すること が可能な処理方法 その方法を適用した処理装置及びその装置を実 現するためのコンピユー夕プログラムの提供を主たる目的とする さ らに本発明は 属性別に集約したテ ―ブルの数及びテーブルに 含まれる図形要素の数を比較することで図形データの同一性を判定 することにより、 比較すべき項目が少な < 、 しかも比較すべき数は 整数値であるため処理時間等の処理負荷を軽減することが可能な ンピユータブログラム等の提供を他の目的とする。
そして本発明は 図形要素に外接する長方形の対角の頂点の座標 を示す範囲座標を比較することで図形デ 夕の同一性を判定する とにより、 比較すベき座標が 2点だけとなるため処理時間等の処理 負荷を軽減することが可能なコンピュー夕プログラム等の提供を更 に他の目的とする。
そして本発明は 、 比較したテ一ブルの数、 図形要素の数及び IS囲 座標等の比較を順次行う過程において、 一つでも異なればその時点 で同一ではないと判定することにより、 不必要な比較処理を行 とが "、ヽく処理時間等の処理負荷を軽減することが可能なコンピュ 夕プ Dグラム等の提供を更に他の目的とする 発明の開示
第 1発明に係る処理方法は、 図形要素を組み合わせた図形を示す 図形データを処理する処理方法において、 図形データを構成する図 形要素に関する情報を、 図形要素の属性別に集約する。
第 1発明に係る処理方法では、 図形データを構成する図形要素の 種別、 色、 線種及び線幅等の属性別に図形要素データを集約するこ とにより、 属性別に集約したデータを比較用のデータとして用い、 比較用のデータ同士を比較することで図形データの同一性を判定す ることが可能となるので、 仕様が異なる形式の図形データの同一性 を判定することが可能である。
第 2発明に係る処理装置は、 配置される位置及び形状を座標とし て示す配置座標により示される図形要素を、 組み合わせた図形を示 す図形データを処理する処理装置において、 各図形要素に外接する 四角形の頂点の座標を示す範囲座標を算出する手段と、 図形データ を構成する図形要素を示す図形要素データとして、 図形要素の配置 座標及び範囲座標を、図形要素の属性別に集約する手段とを備える。
2発明に係る処理装置では 、 図形デー夕を構成する図形要素の 種別 、 色 、 線種及び線幅等の属性別に、 図形要素の位置及び形状を 示す配置座標並びに範囲座標を集約することにより、 仕様が異なる 形式の図形デ 夕の比較に用いることができる 、 夫々属性別に配置 座標及び範囲座標を記録した比較用フアイルを生成することが可能 となる
第 3発明に係る処理装置は、 第 2発明において、 更に、 第 1 の図 形デ一夕を構成する図形要素を示す図形要素了一夕を属性別に集約 した第 1 のテ ブル及び第 2の図形データを構成する図形要素を示 す図形要素ァ一夕を属性別に集約した第 2のテ —ブルを比較する手 段と 、 比較した 口 :^: いて第 1 の図形デー夕及び第 2の図形デ 一夕の同一性を判定する手段とを備える。
第 3発明に係る処理装置では、 第 1 の図形データから生成された 第 1 のテーブルを有する比較用ファイルと第 2 の図形データから生 成された第 2のテーブルを有する比較用ファイルとを比較して第 1 の図形デ一夕及び第 2の図形データの同一性を判定することにより、 仕様が異なる形式の図形データであっても比較用ファイル同士を比 較することが可能となり、 これにより図形データの同一性を判定す ることが可能となる。
第 4発明に係るコンピュータプログラムは、 コンピュータに、 配 置される位置及び形状を座標として示す配置座標により示される図 形要素を、 組み合わせた図形を示す図形データを処理させるコンビ ユ ータブログラムにおいて、 コンピュータに、 各図形要素に外接す る四角形の頂点の座標を示す範囲座標を算出させる手順と、 コンビ ユ ー夕に、 図形データを構成する図形要素を示す図形要素データと して、 図形要素の配置座標及び範囲座標を、 図形要素の属性別に集 約させる手順とを実行させる。
第 4発明に係るコンピュータプログラムでは、 図形データを構成 する図形要素の種別、 色、 線種及び線幅等の属性別に、 図形要素の 位置及び形状を示す配置座標並びに範囲座標を集約することにより、 仕様が異なる形式の図形データの比較に用いることができる、 夫々 属性別に配置座標及び範囲座標を記録した比較用ファイルを生成す ることが可能となる。
第 5発明に係るコンピュータプログラムは、 第 4発明において、 コンピュータに、 第 1 の図形データを構成する図形要素を示す図形 要素データを属性別に集約した第 1 のテーブル及び第 2の図形デー 夕を構成する図形要素を示す図形要素データを属性別に集約した第 2のテーブルを比較させる手順と、 コンピュータに、 比較した結果 に基づいて第 1 の図形データ及び第 2の図形データの同一性を判定 させる手順とを実行させる。
第 5発明に係るコンピュータプログラムでは、 第 1 の図形デ一夕 から生成された第 1 のテーブルを記録した比較用ファィルと第 2の 図形データから生成された第 2 のテ一ブルを記録した比較用ファィ ルとを比較して第 1 の図形データ及び第 2の図形デ一夕の同一性を 判定することにより、 仕様が異なる形式の図形デー夕であつても比 較用フアイル同士を比較することが可能となり、 これにより図形デ 一夕の同一性を判定することが可能となる。
第 6発明に係るコンピュータプログラムは、 第 4発明において 、 コンピュー夕に、 第 1 の図形データ 構成する図形要素を示す図形 要素データを属性別に集約した第 1 のテーブルの数及び第 2の図形 データを構成する図形要素を示す図形要素データを属性別に集約し た第 2 のテ一ブルの数を比較させる第 1手順と、 コンピュ —夕に 、 対応する属性毎に、 第 1 のテーブルに集約された図形要素つ 夕に て示される図形要素の数及び第 2のテーブルに集約された図形要素 テ一夕にて示される図形 素の数を比較させる第 2手順と 、 3ンピ ュ 夕に、 対応する属性毎に 、 第 1 のテ一ブルに た図形要 素テ 夕に含まれる範囲座標及び第 2のテ一ブル れた図形 要素テ一夕に含まれる範囲座標を比較させる第 3 コンピュ タに 、 第 3手順の比較により対応する全てのテ 全ての図 形要素データに含まれる範囲座標がー致すると判 した場合合に 、 各 テ ブル内で範囲座標が一致する図形要素ァ一夕 判定させ る手順と、 コンヒュ一夕に 、 テ一ブル内で範囲座 する図形 要素テ一夕が存在すると判定したとさに 、 当該テ 属性に対 応する 、 第 1 のテ一ブルに集約された図形要素の 及び第 2 のテ ブルに集約された図形要素の配置座標を比
とを実行する。
6発明に係る nンピュ一夕プログラムでは、 S テ一プルの数及びテーブルに含まれる図形要素の数を比較すること で図形データの同一性を判定することにより、 比較すべき項目が少 なく、 しかも比較すべき数は整数値であるので、 実数値である配置 座標を比較する場合と比べて図形データの比較に要する処理時間等 の処理負荷を軽減することが可能である。
そして図形要素に外接する長方形等の四角形の対角の頂点の座標 を示す範囲座標、 所謂エクステント座標を比較することで図形デー 夕の同一性を判定することにより、 楕円弧の様な複雑な図形であつ ても比較すべき座標が 2点だけとなるため処理時間等の処理負荷を 大幅に軽減することが可能である。
さ らに所定の属性の要素図形データを比較する場合で、 属性が対 応する第 1 のテーブル及び第 2のテーブルの夫々に範囲座標が同一 である図形要素データが夫々一つだけ存在するとき、 範囲座標が同 一でありながら異なる図形要素である可能性は低いと見なして図形 要素データの配置座標を比較するという詳細な比較を行わずに図形 データの同一性の判定を行う ことにより、 数多く の座標を全て比較 する必要が無くなるので処理時間等の処理負荷を軽減することが可 能である。
第 7発明に係るコンピュータプログラムは、 第 6発明において、 コンピュータに、 第 1手順、 第 2手順、 第 3手順又は第 4手順での 比較により同一でないと判定した場合に第 1 の図形及び第 2 の図形 は同一でないと判定させる手順を実行させることを特徴とする。 第 7発明に係るコンピュータプログラムでは、 テーブルの数、 図 形要素の数及び範囲座標等の比較を順次行う過程において、 一つで も異なればその時点で同一ではないと判定することにより、 同一で はないと判定した段階で比較処理を終了させることができるので不 必要な比較処理を行う ことが無く処理時間等の処理負荷を軽減する ことが可能である。 第 8発明に係るコンピュータプログラムは、 第 4発明乃至第 7発 明のいずれかにおいて、 前記属性は、 図形要素の種別、 色、 線種及 び線幅である。
第 8発明に係るコンピュータプログラムでは、 図形要素の色、 線 種及び線幅等の属性別に図形要素データを集約することにより、 仕 様が異なる形式の図形デ一夕の比較に用いられる比較用ファイルを 生成することが可能となる。 図面の簡単な説明
第 1 図は本発明の処理装置の構成を示すブロック図、 第 2図は本 発明の処理装置の比較用ファイル生成処理を示すフローチャー ト、 第 3図は本発明の処理装置が算出する範囲座標を説明する説明図、 第 4図は本発明の処理装置が生成した比較用ファイルに含まれる属 性別のテーブルを概念的に示す説明図、 第 5図は本発明の処理装置 の図形データ比較処理を示すフローチャー ト、 第 6 図は本発明の処 理装置の図形データ比較処理を示すフローチャー ト、 第 7図は従来 の図形データの比較に用いられる図形要素デ一夕を概念的に示す説 明図である。 発明を実施するための最良の形態
以下、 本発明をその実施の形態を示す図面に基づいて詳述する。 第 1 図は本発明の処理装置の構成を示すブロック図である。
第 1 図中 1 0 は C A D (Computer Aide d Design) システムに用 いられる処理装置であり、 処理装置 1 0は、 汎用型コンピュータ等 のコンピュータを用いて構成され、 本発明の処理装置用のコンビュ 一夕プログラム P G及びデ一夕等の情報を記録した C D— R O M等 の記録媒体 R E Cから各種情報を読み取る C D— R O Mドライブ等 の補助記憶手段 1 2、 補助記憶手段 1 2 により読み取られた各種情 報を記録するハードディスク等の記録手段 1 3 を備えている。
そして記録手段 1 3から本発明のコンピュータプログラム P G及 びデータ等の各種情報を読み取り、 情報を一時的に記憶する R A M 1 4に記憶させて C P U 1 1 により実行することで、 コンピュータ は本発明の処理装置 1 0 として動作する。
' なお C P U 1 1 は、 一つのチップにて構成しても良いが、 画像処 理プロセッサ等の専用プロセッサと組み合わせて構成することによ り、 高速な処理が実現できる。
さ らに処理装置 1 0は、 マウス、 夕ブレッ ト及びキーボー ド等の 入力手段 1 5並びにモニタ、 プリ ンタ及びプロッタ等の出力手段 1
6 を備えている。
なお記録手段 1 3 には、 本発明のコンピュータプログラム P Gだ けでなく、 楕円弧 (自由曲線)、 線分及び円等の図形要素を組み合わ せた図形を示す図形データを作成する C A D用のコンピュータプロ グラムも記録されており、本発明のコンピュータプログラム P Gは、 C A D用のコンピュータプログラムの処理により作成された図形デ 一夕を処理して図形データの同一性を判定するための支援ツールと して用いられる。
C A D用のコンピュータプログラムの処理により作成された図形 デ一夕は、楕円弧、線分及び円等の図形要素により構成されており、 図形要素を示す図形要素データは、 図形要素の属性並びに配置され る位置及び形状を座標として示す配置座標等の情報を含んでいる。 図形要素データの属性とは、 図形要素の種別、 色、 線種及び線幅 等の情報である。
図形要素の種別とは、 楕円弧、 線分及び円等の図形要素の種別を 示す情報である。
図形要素の色とは、 黄、 赤及び緑等の図形要素の色を示す情報で める。 図形要素の線種とは、 破線、 実線及び一点鎖線等の図形要素を形 成する線の種類を示す情報である。
図形要素の線幅とは、 0 . 8、 1 . 0及び 0 . 6等の図形要素を 形成する線の幅を示す情報である。
配置座標とは、 図形要素が配置される位置及び形状を示す座標等 の情報であり、 図形要素が線分の場合には両端の座標、 図形要素が 円の場合には中心の座標及び半径、 そして図形要素が楕円弧の場合 には楕円弧が通過する座標等が配置座標となる。
また図形要素の種別が文字である場合、 文字の開始位置の座標及 び文字列等が配置座標となる。
なお上述した各図形要素を示す配置座標はあく までも一例であり、 線分の配置座標として始点座標及び方向べク トルを用い、 円の配置 座標として通過する 3点の座標を用いるというように配置される位 置及び形状を特定することができるのであれば上述した例以外の他 の表現による配置座標を用いるようにしても良い。
次に本発明の処理装置 1 0の処理について説明する。
第 2図は本発明の処理装置 1 0の比較用ファイル生成処理を示す フローチヤ一トである。
本発明の処理装置 1 0では、 図形データを比較する場合に図形デ 一夕の比較に用いられる比較用ファイルを生成する。
処理装置 1 0 は、 R A M 1 4に記憶させたコンピュータプロダラ ム P Gを実行させる C P U 1 1 の制御により、 比較の対象となる図 形データを構成する図形要素に外接する長方形等の四角形の対角の 頂点の座標を示す範囲座標を算出する ( S 1 0 1 )。
第 3 図は本発明の処理装置 1 0が算出する範囲座標を説明する説 明図である。
第 3図の ( a ) は種別が線分である図形要素の範囲座標を示して いる。 こ こでいう範囲座標とは、 一般にエクステン ト座標と呼ばれ、 図 形要素に外接する長方形等の四角形の対角の頂点の座標である。
第 3 図の ( a ) に示す例では線分 L 1 に外接する四角形 A 1 B 1 C 1 D 1 の 4の頂点の中で右上の頂点 B 1 の座標 ( x l 1 , y 1 1 ) 及び左下の頂点 D 1 の座標 ( x l 2, y 1 2 ) が範囲座標として 算出される。
第 3図の ( b ) は種別が楕円弧である図形要素の範囲座標を示し ている。
第 3図の ( b ) では、 自由曲線である楕円弧 L 2 に外接する四角 形 A 2 B 2 C 2 D 2の 4の頂点の中で右上の頂点 B 2 の座標 ( x 2 1, y 2 1 ) 及び左下の頂点 D 2の座標 ( x 2 2, y 2 2 ) が範囲 座標として算出される。
第 3図の ( c ) は種別が楕円弧である図形要素の範囲座標を示し ている。
第 3 図の ( c ) では、 自由曲線である楕円弧 L 3 に外接する四角 形 A 3 B 3 C 3 D 3 の 4の頂点の中で右上の頂点 B 3 の座標 ( x 3 1 , y 3 1 ) 及び左下の頂点 D 3の座標 ( x 3 2, y 3 2 ) が範囲 座標として算出される。
第 3 図に示すように範囲座標を用いることで楕円弧のように複雑 な図形でも線分と同様に 2つの座標で示すことができる。
なおここでは直交座標系について説明しているので、 四角形は直 行する座標軸に平行な 4辺にて構成される長方形となるが、 直交座 標系ではない場合、 平行四辺形等の四角形となる。
またこ こでいう長方形とは 4つの内角が全て直角である四角形を 意味し、 正方形をも含む。
フローチャートに戻り、 処理装置 1 0は、 R AM I 4に記憶させ たコンピュータプログラム P Gを実行させる C P U 1 1 の制御によ り、 図形データを構成する図形要素を示す図形要素データとして配 置座標及び範囲座標を属性別に集約し ( S 1 0 2 )、 集約した図形要 素デ一夕を属性別のテ ブルに記録した比較用ファィルを生成し (
S 1 0 3 )、生成した属性別のテ ブルを含む比較用ファィルを βし 手段 1 3 に記録する ( S 1 0 4 )。
第 4図は本発明の処理装置 3 0が生成した比較用ファイルに含ま れる属性別のテーブルを概念的に示す説明図である
第 4図の ( a ) は種別が楕円弧、 色が黄、 線種が破線及び線幅が
0 • 8 の属性の図形要素を集約したテーブルであり、 当該属性の図 形要素の配置座標及び範囲座標がレコー ドとして記録されている 第 4図の ( b ) は種別が線分、 色が青、 線種が実線及び線幅が 1 -
0 の属性の図形要素を集約したテーブルであり、 当該属性の図形要 素の配置座標及び範囲座標がレコードとして記録されている。
第 4図の ( c ) は種別が線分、 色が赤、 線種が実線及び線幅が 1 •
0 の属性の図形要素を集約したテーブルであり、 当該属性の図形要 素の配置座標及び範囲座標がレコー ドとして記録されている。
のようにテーブルは属性の数だけ生成され、 各属性に対応する テ ブルには当該属性の図形要素の個数分レコードが含まれる
5 図及び第 6図は本発明の処理装置 1 0 の図形デ一夕比較処理 を示すフローチヤ 卜である
本発明の処理装置 1 0では、 第 1 の図形デー夕及び第 2の図形デ
—夕の 一性を、 第 1 の図形デー夕から生成した第 1 のテ一ブル及 び第 2の図形デー夕から生成した第 2のテ一ブルを比較することに より、第 1 の図形データ及び第 2の図形データの同一性を比較する。 処理装置 1 0では、 R A M 1 4に記憶させたコンピュータプログ ラム P Gを実行させる C P U 1 1 の制御により、対応する属性毎に、 第 1 の図形データを構成する図形要素を示す図形要素データを属性 別に集約した第 1 のテーブルの数及び第 2 の図形デ一夕を構成する 図形要素を示す図形要素データを属性別に集約した第 2のテーブル の数を比較する ( S 2 0 1 )。
処理装置 1 0では、 R A M 1 4に記憶させたコンピュータプログ ラム P Gを実行させる C P U 1 1 の制御により、 ステップ S 2 0 1 の比較において、 第 1 のテーブル及び第 2 のテーブルの数が異なる と判定した場合 ( S 2 0 2 : N〇)、 第 1 の図形データ及び第 2 の図 形データは同一ではないと判定して ( S 2 0 3 )、 図形データ比較処 理を終了する。
即ち図形デ一夕のテーブルの数により示される夫々の図形デ タ を構成する図形要素の数が異なる場合、 第 1 の図形デ一夕及び第 2 の図形データは同一ではないと判定する。
そして処理装置 1 0では、 R A M 1 4に記憶させた ンピュ ―夕 プログラム P Gを実行させる C P U 1 1 の制御により 、 ステツプ S
2 0 1 の比較において、 第 1 のテーブル及び第 2のテ ブルの数が 同じであると判定した場合 ( S 2 0 2 : Y E S ) , 対応する属性毎に
、 第 1 のテーブルに記録された図形要素データにて示される図形要 素の数及び第 2 のテーブルに記録された図形要素つ 夕にて示され る図形要素の数を比較する ( S 2 0 4 )。
処理装置 1 0では、 R A M 1 4に記憶させたコンピュ一タブ口グ ラム P Gを実行させる C P U 1 1 の制御により、 ステ 、ソプ S 2 0 4 の比較において、 一つでも、 対応する属性の、 第 1 のテ一ブルに記 録された図形要素データにて示される図形要素の数と 、 第 2 のテ一 ブノレに Sれた図形要素デ一夕にて示される図形要素の数とが異 なると判定した場合 ( S 2 0 5 : N 0 ) 第 1 の図形デ一夕及び第 2 の図形データは同一ではないと判定して ( S 2 0 3 )、 図形デー夕比 較処理を終了する。
即ち夫々対応する属性について、 図形要素の数が異なる属性が一 つでもある場合、 第 1 の図形データ及び第 2の図形データは同一で はないと判定する。 そして処理装置 1 0では、 R A M 1 4に記憶させたコンピュ一夕 プログラム P Gを実行させる C P U 1 1 の制御により、 対応する属 性の、 第 1 のテーブルに集約された図形要素データにて示される図 形要素の数と、 第 2のテーブルに集約された図形要素データにて示 される図形要素の数とが同じであると判定した場合 ( S 2 0 5 : Y
E S )、 対応する属性の、 第 1 のテ一ブルに集約された図形要素デー 夕に含まれる範囲座標及び第 2 のテ一ブルに集約された図形要素デ 一夕に含まれる範囲座標を比較する ( S 2 0 6 )。
処理装置 1 0では、 R A M 1 4に記憶させたコンピュータプログ ラム P Gを実行させる C P U 1 1 の制御により、 ステップ S 2 0 6 の比較において、 第 1 のテ一ブルに記録された図形要素デー夕の範 囲座標と同じ範囲座標の図形要素デ —夕が第 2のテーブルに含まれ ていないと判定した場合 ( S 2 0 7 : N O )、 第 1 の図形デー夕及び 第 2 の図形データは同一ではないと判定して ( S 2 0 3 )、 図形デー 夕比較処理を終了する。
即ち対応する属性について 、 一方のテーブルに含まれる図形要素 データの範囲座標と同じ範囲座標の図形要素データが他方のテープ ルに含まれているか否かを 、 当該属性の全ての図形要素デー夕につ いて判定し、 一つでも一方のテ一ブルに含まれている図形要素デー 夕の範囲座標と同じ範囲座 の図形要素データが他方のテーブルに 含まれていないと判定した場 P 、 第 1 の図形デ一夕及び第 2 の図形 データは同一ではないと判定する。
そして処理装置 1 0では 、 R A M 1 4に記憶させたコンピュ一夕 プログラムを実行する C P U 1 1 の制御により、 ステップ S 2 0 7 の比較において、 対応する属性の、 第 1 のテーブルに集約された図 形要素データの範囲座標が全て第 2 のテーブルに集約された図形デ 一夕の範囲座標と同じである場 S 2 0 7 : Y E S )、 当該属性の 各テーブル内で、 範囲座標が一致する図形要素のデータの有無を判 6 別する ( S 2 0 8 )。
処理装置 1 0では、 R A M 1 4に記憶させたコンピュータプログ ラムを実行する C P U 1 1 の制御により、 ステップ S 2 0 8 の比較 において、 当該属性の各テーブル内で、 範囲座標が一致する図形要 素データが無いと判別した場合 ( S 2 0 9 : Y E S )、 当該属性のテ 一ブルに集約された図形要素は全て同一であると判定する ( S 2 1 0 )。
ステップ S 2 0 9で範囲座標が一致する図形要素データが無いと 判定した場合、 即ち図形要素データの範囲座標は夫々異なると判定 した場合、 属性及び範囲座標が同一でありながら異なる図形要素で ある可能性は低いと見なして当該属性のテーブルに集約された図形 要素は全て同一であると判定する。
また処理装置 1 0では、 R AM I 4に記憶させたコンピュータプ ログラムを実行する C P U 1 1 の制御によ り、 ステップ S 2 0 8 の 比較において、 当該属性のテーブル内で、 範囲座標が一致する図形 要素データが有ると判定した場合 ( S 2 0 9 : N O), 当該属性に対 応する、 第 1 のテーブルに集約された配置座標及び第 2のテーブル に集約された配置座標を比較する ( S 2 1 1 )。
ステップ S 2 0 9で範囲座標が一致する図形要素データが有ると 判定した場合、 即ち範囲座標が一致する図形要素データが当該属性 のテーブルに複数存在する場合、 その図形要素について全ての情報 を比較する必要があると判定する。
そして処理装置 1 0では、 R AM I 4に記憶させたコンピュータ プログラムを実行する C P U 1 1 の制御により、 ステップ S 2 1 1 の比較において、 配置座標が一致しないと判定した場合 ( S 2 1 2 : N O)、 第 1 の図形データ及び第 2の図形デ一夕は同一ではないと 判定して ( S 2 0 3 )、 図形データ比較処理を終了する。
また処理装置 1 0では、 R A M 1 4に記憶させたコンピュータプ T 口グラムを実行する C P U 1 1 の制御により、 ステップ S 2 1 1 の 比較において、 配置座標が一致すると判定した場合
( s 2 1 2 : Y E S )、 当該属性のテーブルに記録された図形要素は 全て同一であると判定する ( S 2 1 0 )。
そして処理装置 1 0では 、 R A M 1 4に記憶させたコンピュ一夕 プ口グラムを実行する C P U 1 1 の制御により、 ステツプ S 2 1 0 にて当該属性のテーブルに集約された図形要素は全て同一でめると 判定した後 、 ステップ S 2 0 6以降で行われる範囲座標の比較を行 つていない属性の有無を判定し ( S 2 1 3 )、 範囲座標の比較を行つ ていなぃ属性が有ると判定した場合 ( S 2 1 3 : Y E S ) 、 ステップ
S 2 0 6へ進み、 範囲座標の比較を行っていない属性のテーブルに 記録された図形要素データについて同様の処理を繰り返す。
また処理装置 1 0では、 R AM I 4に記憶させたコンピュータプ ログラムを実行する C P U 1 1 の制御により、 ステップ S 2 1 3 の 判定において、 範囲座標の比較を行っていない属性が無いと判定し た場合 ( S 2 1 3 : N O)、 対応する全てのテーブルの全ての図形要 素データが比較により同一であると判定されたので第 1 の図形デー 夕及び第 2 の図形データは同一であると判定して ( S 2 1 4 )、 図形 データ比較処理を終了する。
なおステップ S 2 0 6 にて行われる範囲座標の比較及びステップ S 2 1 1 にて行われる配置座標の比較では、 完全に座標が一致して いなくても、 その差異が予め設定されている誤差範囲内で有れば一 致していると判定する。
座標は整数値ではなく実数値であるため、 例えば異なる仕様に対 応するように図形デ一夕の変換時に誤差が発生し得うるので、 それ を考慮したものである。
このようにして図形データの同一性を比較することにより、 例え ばある建造物を発注者が設計者に設計を依頼し、 施工者に施工を依 I S 頼し、 保全者に保全を依頼する場合で、 設計者が作成する C A Dシ ステムのファイル形式、 設計者が発注者に納入するファイル形式、 発注者から施工者に供給され施工者にて変換されるファイル形式、 及び設計者が発注者に納入するファイル形式、 発注者から保全者に 供給され保全者にて変換されるファイル形式が夫々異なる場合であ つても、 夫々のファイル形式の画像データの同一性を判定すること ができるので、 画像データが改善されていないことを保証すること が可能である。
また一のフアイル形式の画像ア 夕を他のフアイル形式の画像デ 一夕に変換し 、 更に他の形式に変換した画像データを再度一のファ ィル形式の画像デ一夕に変換して 、 元の一のフアイル形式の画像デ 一夕と再変換した一のファィル形式の画像デ一夕との同一性を比較 することによ Ό 、 画像デ タの変換精度を判定することが可能であ る。
上述した実施の形態は、 本願発明を実施する形態の一つを示した ものであり、 本願発明は請求の範囲に記載した技術的範囲内で様々 な形態に適用することが可能である。 産業上の利用可能性
以上詳述した如く本発明に係る処理方法、 処理装置及びコンビュ 一夕プログラムでは、 図形要素を組み合わせた図形を示す図形デー 夕を処理する C A Dシステムにて作成された図形データを構成する 図形要素の種別、 色、 線種及び線幅等の属性別に、 配置される位置 及び形状を座標として示す配置座標並びに範囲座標を集約し、 夫々 属性別のテーブルを有する比較用ファイルとして記録することによ り、 仕様が異なる形式の図形データの比較に用いられる比較用ファ ィルを生成することが可能となる等、 優れた効果を奏する。
さ らに本発明では、 属性別に集約したテーブルの数及び図形要素 の数を比較することで図形データの同一性を判定することにより、 比較すべき項目が少なく、しかも比較すべき数は整数値であるので、 実数値である座標を比較する場合と比べて図形デ一夕の比較に要す る処理時間等の処理負荷を軽減することが可能である等、 優れた効 果を奏する。
そして図形要素に外接する長方形の対角の頂点の座標を示す範囲 座標、 所謂エクステント座標を比較することで図形データの同一性 を判定することにより、 楕円弧の様な複雑な図形であっても比較す べき座標が 2点だけとなるため処理時間等の処理負荷を大幅に軽減 することが可能である等、 優れた効果を奏する。
さ らに所定の )1性の要素図形デ 夕を比較する 合で、 属性が対 応する第 1 のテ ―ブル及び第 2のテ ブルの夫々に範囲座標が同一 である図形要素テ 夕が夫々一つだけ存在するとさ 、 範囲座標が同 一であ Όながら異なる図形要素である可能性は低いと見なして図形 要素デ 夕の配置座標を比較するという詳細な比較を行わずに図形 テ一夕の同一性の判定を行う ことにより、 数多くの座標を全て比較 する必 が無 <なるので処理時間等の処理負荷を軽減する とが可 能である等、 優れた効果を奏する。
そして本発明では、 テーブルの数、 図形要素の数及び範囲座標等 の比較を順次行う過程において、 一つでも異なればその時点で同一 'ではないと判定することにより、 同一ではないと判定した段階で比 較処理を終了させることができるので不必要な比較処理を行う こと が無く処理時間等の処理負荷を軽減することが可能である等、 優れ た効果を奏する。

Claims

言青求 の 範 囲
1 . 図形要素を組み合わせた図形を示す図形データを処理する処 理方法において、
図形データを構成する図形要素に関する情報を、 図形要素の属性 別に集約することを特徴とする処理方法。
2 . 配置される位置及び形状を座標として示す配置座標により示 される図形要素を、 組み合わせた図形を示す図形データを処理する 処理装置において、
各図形要素に外接する四角形の頂点の座標を示す範囲座標を算出 する手段と、
図形データを構成する図形要素を示す図形要素データとして、 図 形要素の配置座標及び範囲座標を、 図形要素の属性別に集約する手 段と
を備えることを特徴とする処理装置。
3 . 更に、 第 1 の図形データを構成する図形要素を示す図形要素 データを属性別に集約した第 1 のテーブル及び第 2の図形データを 構成する図形要素を示す図形要素データを属性別に集約した第 2 の テーブルを比較する手段と、
比較した結果に基づいて第 1 の図形データ及び第 2の図形データ の同一性を判定する手段と
を備えることを特徴とする請求項 2 に記載の処理装置。
4 . コンピュータに、 配置される位置及び形状を座標として示す 配置座標により示される図形要素を、 組み合わせた図形を示す図形 データを処理させるコンピュータプログラムにおいて、
コンピュータに、 各図形要素に外接する四角形の頂点の座標を示 す範囲座標を算出させる手順と、
コンピュータに、 図形データを構成する図形要素を示す図形要素 データとして、 図形要素の配置座標及び範囲座標を、 図形要素の属 性別に集約させる手順と
を実行させることを特徴とするコンビュ―夕プ口クラム。
5 - 3ンピュー夕に 、 第 1 の図形データを構成する図形要素を示 す図形要素データを属性別に集約した第 1 のテ一ブル及び第 2 の図 形デ一夕を構成する図形要素を示す図形要素了一夕を属性別に集約 した第 2 のテーブルを比較させる手順と 、
ンピュ一夕に、 比較した結果に基づいて第 1 の図形デー夕及び 第 2の図形データの 一性を判定させる手順と
を 行させることを特徴とする請求項 4に記 のコンピュ一夕プ ログラム。
6 . コンピュ 夕に、 第 1 の図形デー夕を構成する図形要系を不 す図形要素ァ 夕を属性別に集約した第 1 のテーブルの数及び第 2 の図形デー夕を構成する図形要素を示す図形要素デー夕を属性別に 集約した第 2のテ一ブルの数を比較させる第 1手順と 、
ノ 、 ヒュ 夕に 、 対応する属性毎に、 第 1 のテープルに集約され た図形要素ァ 夕にて示される図形要素の数及び第 2 のテ一ブルに 約された図形 データにて示される図形要素の数を比較させる 第 2手順と、
コンピュータに 、 対応する属性毎に 、 第 1 のテーブルに集約され た図形要素デー夕に含まれる範囲座標及び第 2 のテーブルに集約さ れた図形要素デ 夕に含まれる範囲座標を比較させる第 3手順と 、 コンピュータに 、 第 3手順の比較により対応する全てのテープル の全ての図形要素ァ一夕に含まれる範囲座標が一致すると判定した 場合に、 各テーブル内で範囲座標がー致する図形要素データの有ハ、、 を判定させる手順と、
コンピュータに 、 テ ―ブル内で範囲座標が一致する図形要素デ ― 夕が存在すると判定したときに 、 当該テ一ブルの属性に対応する 、 第 1 のテーブルに集約された図形要素の配置座標及び第 2のテーブ ルに集約された図形要素の配置座標を比較させる第 4手順と を実行させることを特徴とする請求項 4に記載のコンピュータプ ログラム。
7 . コンピュータに、 第 1手順、 第 2手順、 第 3手順又は第 4手 順での比較により同一でないと判定した場合に第 1 の図形及び第 2 の図形は同一でないと判定させる手順を実行させることを特徴とす る請求項 6 に記載のコンピュータプログラム。
8 . 前記属性は、 図形要素の種別、 色、 線種及び線幅であること を特徴とする請求項 4乃至請求項 7 のいずれかに記載のコンビユ ー タプログラム。
PCT/JP2002/013111 2002-12-13 2002-12-13 処理方法、処理装置及びコンピュータプログラム WO2004055697A1 (ja)

Priority Applications (3)

Application Number Priority Date Filing Date Title
PCT/JP2002/013111 WO2004055697A1 (ja) 2002-12-13 2002-12-13 処理方法、処理装置及びコンピュータプログラム
JP2004560562A JPWO2004055697A1 (ja) 2002-12-13 2002-12-13 処理方法、処理装置及びコンピュータプログラム
US11/147,428 US7554547B2 (en) 2002-12-13 2005-06-08 Processing method, processing apparatus, and computer program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2002/013111 WO2004055697A1 (ja) 2002-12-13 2002-12-13 処理方法、処理装置及びコンピュータプログラム

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US11/147,428 Continuation US7554547B2 (en) 2002-12-13 2005-06-08 Processing method, processing apparatus, and computer program product

Publications (1)

Publication Number Publication Date
WO2004055697A1 true WO2004055697A1 (ja) 2004-07-01

Family

ID=32587941

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2002/013111 WO2004055697A1 (ja) 2002-12-13 2002-12-13 処理方法、処理装置及びコンピュータプログラム

Country Status (3)

Country Link
US (1) US7554547B2 (ja)
JP (1) JPWO2004055697A1 (ja)
WO (1) WO2004055697A1 (ja)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007179272A (ja) * 2005-12-27 2007-07-12 Fujitsu Ltd コンピュータ支援設計装置、そのプログラム及び方法
JP2007193578A (ja) * 2006-01-19 2007-08-02 Shigenori Tanaka Cadデータ同一性検証装置、cadデータ同一性検証方法、及びcadデータ同一性検証プログラム
JP2007206956A (ja) * 2006-02-01 2007-08-16 Shigenori Tanaka Cadデータ同一性保証サーバ装置、cadデータ同一性保証方法

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7639898B1 (en) 2004-05-10 2009-12-29 Google Inc. Method and system for approving documents based on image similarity

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0728866A (ja) * 1993-06-24 1995-01-31 Toshiba Corp プロットデ―タ汎用変換装置
JPH08272972A (ja) * 1995-03-31 1996-10-18 Nippon Steel Corp シンボル認識方法
JPH10269259A (ja) * 1997-03-24 1998-10-09 Mitsubishi Electric Corp 計算機システム

Family Cites Families (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4847788A (en) * 1985-03-01 1989-07-11 Hitachi, Ltd. Graphic data processing method and system
US4933865A (en) * 1986-12-20 1990-06-12 Fujitsu Limited Apparatus for recognition of drawn shapes or view types for automatic drawing input in CAD system
JPH01175671A (ja) * 1987-12-29 1989-07-12 Nippon Steel Corp 図面データの変換方法
JPH031278A (ja) 1989-05-30 1991-01-07 Toshiba Corp 図面読取り方法及び装置
JPH0760465B2 (ja) * 1989-10-23 1995-06-28 インターナシヨナル・ビジネス・マシーンズ・コーポレーシヨン 凹ポリゴン描出方法及びプロセツサ
JP2809762B2 (ja) * 1989-11-14 1998-10-15 株式会社東芝 図形整形装置
JP2770598B2 (ja) * 1990-06-13 1998-07-02 株式会社日立製作所 図形表示方法およびその装置
JP2986185B2 (ja) 1990-08-10 1999-12-06 新日本製鐵株式会社 線図形の線幅分類方式
US5231695A (en) * 1990-08-29 1993-07-27 Xerox Corporation Generalized clipping in an extended frame buffer
JP2873883B2 (ja) 1991-02-26 1999-03-24 日立ソフトウエアエンジニアリング株式会社 線画像の線幅検出方法
JPH05151350A (ja) 1991-11-27 1993-06-18 Nippon Steel Corp 画像データの位置歪み補正方法
US5537490A (en) * 1992-06-04 1996-07-16 Matsushita Electric Industrial Co., Ltd. Line image processing method
DE69425166T2 (de) * 1993-02-26 2001-03-15 Canon Kk Verfahren und Gerät zur Mustererkennung
JPH07320065A (ja) 1994-05-26 1995-12-08 Hitachi Eng Co Ltd 図面ベクトル化装置及び方法
EP0689168B1 (en) * 1994-06-23 2002-11-27 Canon Kabushiki Kaisha Image processing method and apparatus
JP3896168B2 (ja) 1995-05-25 2007-03-22 ペグレ・セミコンダクターズ・リミテッド・ライアビリティ・カンパニー 図面入力装置における線種認識方法
JPH10230088A (ja) * 1997-02-20 1998-09-02 Brother Ind Ltd 刺繍データ処理装置
US6169554B1 (en) * 1997-06-30 2001-01-02 Sun Microsystems, Inc. Clip testing unit for a three-dimensional graphics accelerator
JP4071328B2 (ja) * 1997-11-18 2008-04-02 富士通株式会社 文書画像処理装置および方法
US6975425B1 (en) * 1998-02-26 2005-12-13 Canon Kabushiki Kaisha Information processing apparatus and information processing method
US6771264B1 (en) * 1998-08-20 2004-08-03 Apple Computer, Inc. Method and apparatus for performing tangent space lighting and bump mapping in a deferred shading graphics processor
IL127254A0 (en) * 1998-11-25 1999-09-22 Univ Ramot Method and system for automatic classification and quantitative evaluation of adnexal masses bases on a cross-sectional or projectional images of the adnex
US6498607B1 (en) * 1999-01-29 2002-12-24 Mitsubishi Electric Research Laboratories, Inc. Method for generating graphical object represented as surface elements
JP3829972B2 (ja) * 2000-03-06 2006-10-04 サイテック株式会社 3次元cadシステム
US6877013B1 (en) * 2000-03-15 2005-04-05 Cadence Design Systems, Inc. Methods and apparatus for extracting capacitances exerted on diagonal interconnect lines in an integrated circuit design

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0728866A (ja) * 1993-06-24 1995-01-31 Toshiba Corp プロットデ―タ汎用変換装置
JPH08272972A (ja) * 1995-03-31 1996-10-18 Nippon Steel Corp シンボル認識方法
JPH10269259A (ja) * 1997-03-24 1998-10-09 Mitsubishi Electric Corp 計算機システム

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007179272A (ja) * 2005-12-27 2007-07-12 Fujitsu Ltd コンピュータ支援設計装置、そのプログラム及び方法
JP2007193578A (ja) * 2006-01-19 2007-08-02 Shigenori Tanaka Cadデータ同一性検証装置、cadデータ同一性検証方法、及びcadデータ同一性検証プログラム
JP2007206956A (ja) * 2006-02-01 2007-08-16 Shigenori Tanaka Cadデータ同一性保証サーバ装置、cadデータ同一性保証方法

Also Published As

Publication number Publication date
US7554547B2 (en) 2009-06-30
US20050225560A1 (en) 2005-10-13
JPWO2004055697A1 (ja) 2006-04-20

Similar Documents

Publication Publication Date Title
JP4885904B2 (ja) 画像処理方法、画像処理プログラム、および画像処理装置
JP3657771B2 (ja) 三次元モデル作成装置
US20080143714A1 (en) Visual file representation
JP4342193B2 (ja) 三次元cadシステム、部分再投影方法、及びコンピュータプログラム
JP4378208B2 (ja) 情報処理装置及び情報処理方法
WO2004055697A1 (ja) 処理方法、処理装置及びコンピュータプログラム
Lipman Mobile 3D visualization for steel structures
JP3954909B2 (ja) 認識モデル生成システム、認識モデル生成方法、該認識モデル生成方法をコンピュータに対して実行させるためのプログラムおよび該プログラムが記録されたコンピュータ可読な記録媒体、ならびに構造メッシュ生成システム
JP2008123319A (ja) 建物モデル生成方法及び装置、並びに建物モデル生成プログラムとそれを記録した記録媒体
CN111080792B (zh) 模型简化处理方法、装置以及电子设备、存储介质
KR101890536B1 (ko) 건설 시공 단계에서의 3차원 설계 모델 데이터와 레이저 스캔 데이터 간 비교 분석을 위한 차별적 데이터 감소 방법 및 시스템
US20230377265A1 (en) Systems for Efficiently Rendering Vector Objects
US9070178B2 (en) Method and system for organizing topology elements for better compression
JP4771807B2 (ja) コンピュータ支援設計装置、そのプログラム及び方法
JP5798357B2 (ja) 画像処理装置、画像処理方法
JP3342678B2 (ja) クラスタリング処理装置およびその方法
US10657427B2 (en) Information processing apparatus, information processing method and storage medium
JPH02228781A (ja) 多角形平滑化方法
US20240145212A1 (en) Electron beam lithography apparatus, electron beam lithography method, and recording medium
JP2000353233A (ja) 地図データ印刷システムと方法およびその処理プログラムを記録した記録媒体
US20060041404A1 (en) Apparatus, method, and computer product for generating model for numerical analysis
Urick et al. Watertight Tensor-Product Spline Reconstruction (KCNSC PDRD Technical Report)
Cox et al. Analysing the Variance and Sustainability of a Digital Thread
Schwartz Development and Validation of a Library for Iterative Window-Based Processing of Geospatial Data
JPH0810467B2 (ja) ストロークに相当する輪郭線を迅速に生成する曲線近似方法

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): JP US

WWE Wipo information: entry into national phase

Ref document number: 2004560562

Country of ref document: JP

WWE Wipo information: entry into national phase

Ref document number: 11147428

Country of ref document: US