JP6520447B2 - Simulation method, simulation apparatus, and computer program - Google Patents
Simulation method, simulation apparatus, and computer program Download PDFInfo
- Publication number
- JP6520447B2 JP6520447B2 JP2015122680A JP2015122680A JP6520447B2 JP 6520447 B2 JP6520447 B2 JP 6520447B2 JP 2015122680 A JP2015122680 A JP 2015122680A JP 2015122680 A JP2015122680 A JP 2015122680A JP 6520447 B2 JP6520447 B2 JP 6520447B2
- Authority
- JP
- Japan
- Prior art keywords
- area
- determination
- objects
- movement
- temporary
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims description 175
- 238000004088 simulation Methods 0.000 title claims description 110
- 238000004590 computer program Methods 0.000 title claims description 8
- 230000009467 reduction Effects 0.000 claims description 77
- 230000008569 process Effects 0.000 claims description 58
- 230000008859 change Effects 0.000 claims description 39
- 239000007787 solid Substances 0.000 claims description 24
- 238000012545 processing Methods 0.000 claims description 8
- 238000012546 transfer Methods 0.000 claims description 3
- 238000004441 surface measurement Methods 0.000 description 88
- 239000013598 vector Substances 0.000 description 41
- 230000014509 gene expression Effects 0.000 description 29
- 238000003860 storage Methods 0.000 description 27
- 238000010586 diagram Methods 0.000 description 22
- 239000002245 particle Substances 0.000 description 17
- 238000004364 calculation method Methods 0.000 description 14
- 230000002452 interceptive effect Effects 0.000 description 9
- 238000011946 reduction process Methods 0.000 description 9
- 230000000694 effects Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 239000000843 powder Substances 0.000 description 2
- 238000012827 research and development Methods 0.000 description 2
- 238000011439 discrete element method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000007788 liquid Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 238000005096 rolling process Methods 0.000 description 1
- 238000003756 stirring Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Description
本発明はシミュレーション方法、シミュレーション装置、およびコンピュータプログラムに関する。 The present invention relates to a simulation method, a simulation apparatus, and a computer program.
粉体や粒子等を使用する各種製品の製造プロセスの研究開発のため、三次元空間における複数物体の混合、充填等に関するシミュレーション技術が必要とされている。特許文献1には、離散要素法に基づいて粒子の攪拌状態をシミュレーションすることが記載されている。
For research and development of manufacturing processes of various products using powder, particles and the like, simulation technology regarding mixing, filling and the like of a plurality of objects in a three-dimensional space is required.
工業的に用いられる粉体や粒子等の形状は球状に限らず多様化しており、そのような場合にも利用可能なシミュレーション方法が求められている。 The shapes of powders and particles that are used industrially are not limited to spherical shapes but are diversified, and simulation methods that can be used in such cases are required.
しかし、特許文献1の方法では、各粒子を球としてモデル化しており、形状に異方性がある粒子等を正確に扱うことができなかった。
However, in the method of
特に、異方性がある物体が配置された三次元空間において、物体の位置と向きの要素を含んだ配置状態をシミュレーションする方法が、必要とされていた。 In particular, there has been a need for a method of simulating an arrangement state including elements of the position and orientation of an object in a three-dimensional space in which an anisotropic object is arranged.
また、特定の体積の空間に高い密度で粒子が充填された状態を再現するモデルが必要とされていた。 In addition, there is a need for a model that reproduces a state in which particles are packed at a high density in a specific volume of space.
本発明は、複数の物体が高い密度で配置された三次元空間のシミュレーション方法を提供する。 The present invention provides a method of simulating a three-dimensional space in which a plurality of objects are arranged at high density.
本発明によれば、
複数の物体が配置された三次元空間のシミュレーション方法であって、
有限の体積を有する充填領域内に配置された前記複数の物体の配置状態を示す空間状態データのうち、前記充填領域を示す情報を取得し、前記充填領域を縮小させた仮充填領域を示す情報を生成する仮充填領域定義工程と、
前記複数の物体の配置状態を示す情報および前記仮充填領域を示す情報に基づき、前記仮充填領域の外の領域、又は前記仮充填領域と当該外の領域との境界と、少なくとも1つの前記物体とが干渉しているか否かの判定を行う縮小干渉判定工程と、
前記縮小干渉判定工程において、当該外の領域又は当該境界と、少なくとも1つの前記物体とが干渉していると判定された場合に、前記空間状態データを変更せず、いずれの前記物体も当該外の領域とも当該境界とも干渉していないと判定された場合に、前記仮充填領域を新たな前記充填領域とし、前記新たな充填領域内に配置された前記複数の物体の配置状態を示す情報を新たな前記空間状態データとする、縮小次状態決定工程とを含む、
シミュレーション方法
が提供される。
According to the invention
A simulation method of a three-dimensional space in which a plurality of objects are arranged,
Information indicating the temporary filling area obtained by acquiring the information indicating the filling area from the spatial state data indicating the arrangement state of the plurality of objects arranged in the filling area having a finite volume, and indicating the temporary filling area reduced in the filling area Temporary filling area definition step of generating
An area outside the temporary filling area or a boundary between the temporary filling area and the area outside the temporary filling area based on the information indicating the arrangement state of the plurality of objects and the information indicating the temporary filling area, and at least one object Interference determination step of determining whether or not the
In the reduced interference determination step, when it is determined that the region outside the area or the boundary thereof interferes with the at least one object, the spatial state data is not changed, and none of the objects is outside the area When it is determined that neither the region nor the boundary interferes with the region, the temporary filling region is defined as a new filling region, and information indicating the arrangement state of the plurality of objects disposed in the new filling region is used. And d) reducing the next state determination step to be new space state data;
A simulation method is provided.
本発明によれば、
複数の物体が配置された三次元空間のシミュレーション装置であって、
有限の体積を有する充填領域内に配置された前記複数の物体の配置状態を示す空間状態データのうち、前記充填領域を示す情報を取得し、前記充填領域を縮小させた仮充填領域を示す情報を生成する仮充填領域定義部と、
前記複数の物体の配置状態を示す情報および前記仮充填領域を示す情報に基づき、前記仮充填領域の外の領域、又は前記仮充填領域と当該外の領域との境界と、少なくとも1つの前記物体とが干渉しているか否かの判定を行う縮小干渉判定部と、
前記縮小干渉判定部が、当該外の領域又は当該境界と、少なくとも1つの前記物体とが干渉していると判定した場合に、前記空間状態データを変更せず、いずれの前記物体も当該外の領域とも当該境界とも干渉していないと判定した場合に、前記仮充填領域を新たな前記充填領域とし、前記新たな充填領域内に配置された前記複数の物体の配置状態を示す情報を新たな前記空間状態データとする、縮小次状態決定部とを備える、
シミュレーション装置
が提供される。
According to the invention
A simulation apparatus of a three-dimensional space in which a plurality of objects are arranged,
Information indicating the temporary filling area obtained by acquiring the information indicating the filling area from the spatial state data indicating the arrangement state of the plurality of objects arranged in the filling area having a finite volume, and indicating the temporary filling area reduced in the filling area Temporary filling area definition unit that generates
An area outside the temporary filling area or a boundary between the temporary filling area and the area outside the temporary filling area based on the information indicating the arrangement state of the plurality of objects and the information indicating the temporary filling area, and at least one object And a reduced interference determination unit that determines whether or not the
When the reduced interference determination unit determines that the area outside the area or the boundary thereof interferes with the at least one object, the spatial state data is not changed, and any of the objects is outside the area When it is determined that neither the area nor the boundary interferes, the temporary filling area is set as a new filling area, and information indicating the arrangement state of the plurality of objects arranged in the new filling area is newly added. And a reduction next state determination unit to be the spatial state data,
A simulation apparatus is provided.
本発明によれば、
複数の物体が配置された三次元空間のシミュレーション装置を実現するためのコンピュータプログラムであって、
コンピュータを、
有限の体積を有する充填領域内に配置された前記複数の物体の配置状態を示す空間状態データのうち、前記充填領域を示す情報を取得し、前記充填領域を縮小させた仮充填領域を示す情報を生成する仮充填領域定義手段、
前記複数の物体の配置状態を示す情報および前記仮充填領域を示す情報に基づき、前記仮充填領域の外の領域、又は前記仮充填領域と当該外の領域との境界と、少なくとも1つの前記物体とが干渉しているか否かの判定を行う縮小干渉判定手段、および
前記縮小干渉判定手段が、当該外の領域又は当該境界と、少なくとも1つの前記物体とが干渉していると判定した場合に、前記空間状態データを変更せず、いずれの前記物体も当該外の領域とも当該境界とも干渉していないと判定した場合に、前記仮充填領域を新たな前記充填領域とし、前記新たな充填領域内に配置された前記複数の物体の配置状態を示す情報を新たな前記空間状態データとする、縮小次状態決定手段として機能させる、
コンピュータプログラム
が提供される。
According to the invention
A computer program for realizing a simulation device of a three-dimensional space in which a plurality of objects are arranged,
Computer,
Information indicating the temporary filling area obtained by acquiring the information indicating the filling area from the spatial state data indicating the arrangement state of the plurality of objects arranged in the filling area having a finite volume, and indicating the temporary filling area reduced in the filling area Temporary filling area defining means for generating
An area outside the temporary filling area or a boundary between the temporary filling area and the area outside the temporary filling area based on the information indicating the arrangement state of the plurality of objects and the information indicating the temporary filling area, and at least one object And the reduced interference determination unit determines that the area or the boundary outside the area and the at least one object interfere with each other. When it is determined that the spatial state data is not changed, and it is determined that neither the object nor the region outside the region nor the boundary interfere with the region, the temporary filling region is set as the new filling region, and the new filling region Function as a reduced next state determination unit that sets information indicating the arrangement state of the plurality of objects arranged in the inside as the new space state data,
A computer program is provided.
本発明によれば、複数の物体が高い密度で配置された三次元空間のシミュレーション方法が提供される。 According to the present invention, a method of simulating a three-dimensional space in which a plurality of objects are arranged at high density is provided.
以下、本発明の実施の形態について、図面を用いて説明する。尚、すべての図面において、同様な構成要素には同様の符号を付し、適宜説明を省略する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. In all the drawings, the same components are denoted by the same reference numerals, and the description thereof will be appropriately omitted.
なお、以下に示す説明において、シミュレーション装置100の物体移動部24、仮充填領域定義部92、縮小干渉判定部94、縮小次状態決定部96、体積判定部98、移動対象物選択部12、移動情報生成部14、対象物移動部16、移動干渉判定部70、移動次状態決定部18、乱雑度判定部22、記憶部26、判定対象物選択部10、座標定義部20、投影像判定部30、第1基準面判定部32、第2基準面判定部34、第3基準面判定部36、および立体判定部40は、ハードウエア単位の構成ではなく、機能単位のブロックを示している。シミュレーション装置100の物体移動部24、仮充填領域定義部92、縮小干渉判定部94、縮小次状態決定部96、体積判定部98、移動対象物選択部12、移動情報生成部14、対象物移動部16、移動干渉判定部70、移動次状態決定部18、乱雑度判定部22、記憶部26、判定対象物選択部10、座標定義部20、投影像判定部30、第1基準面判定部32、第2基準面判定部34、第3基準面判定部36、および立体判定部40は、任意のコンピュータのCPU、メモリ、メモリにロードされた本図の構成要素を実現するプログラム、そのプログラムを格納するハードディスクなどの記憶メディア、ネットワーク接続用インタフェースを中心にハードウエアとソフトウエアの任意の組合せによって実現される。そして、その実現方法、装置には様々な変形例がある。
In the following description, the
(第1の実施形態)
図1は、本実施形態に係るシミュレーション方法のフローである。図2は、三次元空間中の複数の物体50の例を示す模式図である。本実施形態に係るシミュレーション方法は、複数の物体50が配置された三次元空間のシミュレーション方法である。当該シミュレーション方法は、仮充填領域定義工程S92、縮小干渉判定工程S94および縮小次状態決定工程S96を含む。仮充填領域定義工程S92では、有限の体積を有する充填領域60内に配置された複数の物体50の配置状態を示す空間状態データのうち、充填領域60を示す情報が取得され、充填領域60を縮小させた仮充填領域を示す情報が生成される。縮小干渉判定工程S94では、複数の物体50の配置状態を示す情報および仮充填領域を示す情報に基づき、仮充填領域の外の領域(以下、「仮外部領域」と呼ぶ。)、又は仮充填領域と仮外部領域との境界(以下、「仮境界」と呼ぶ。)と、少なくとも1つの物体50とが干渉しているか否かの判定が行われる。縮小次状態決定工程S96では、縮小干渉判定工程S94において、仮外部領域又は仮境界と、少なくとも1つの物体50とが干渉していると判定された場合に、空間状態データが変更されず、いずれの物体50も仮外部領域とも仮境界とも干渉していないと判定された場合に、仮充填領域が新たな充填領域60とされ、新たな充填領域60内に配置された複数の物体50の配置状態を示す情報が新たな空間状態データとされる。以下に詳しく説明する。
First Embodiment
FIG. 1 is a flow of a simulation method according to the present embodiment. FIG. 2 is a schematic view showing an example of a plurality of
以下において、仮充填領域定義工程S92、縮小干渉判定工程S94、および縮小次状態決定工程S96を一度ずつ行う工程を、「縮小工程」と呼ぶ。図1中、縮小工程に含まれる工程を破線で囲って示している。 Hereinafter, the process of performing the temporary filling region defining process S92, the reduction interference determination process S94, and the reduction next state determination process S96 once is referred to as a "reduction process". In FIG. 1, the steps included in the reduction step are shown surrounded by a broken line.
本実施形態に係るシミュレーション方法は、物体移動工程S24をさらに含む。そして、物体移動工程S24および縮小工程を行う状態変更処理が繰り返し行われる。物体移動工程S24では、空間状態データが取得され、複数の物体50の内、少なくとも一つを移動させ、移動させた物体50の配置情報を含む移動後状態データが生成される。縮小干渉判定工程S94では、移動後状態データおよび仮充填領域を示す情報に基づき、仮外部領域、又は仮境界と、少なくとも1つの物体50とが干渉しているか否かの判定が行われる。縮小次状態決定工程S96では、縮小干渉判定工程S94において、仮外部領域又は仮境界と、少なくとも1つの物体50とが干渉していると判定された場合に、空間状態データが変更されない。一方、いずれの物体50も仮外部領域とも仮境界とも干渉していないと判定された場合に、仮充填領域を新たな充填領域60とし、新たな充填領域60内に配置された移動後状態データに基づく複数の物体50の配置状態を示す情報が新たな空間状態データとされる。
The simulation method according to the present embodiment further includes an object moving step S24. Then, the state changing process of performing the object moving step S24 and the reduction step is repeatedly performed. In the object moving step S24, spatial state data is acquired, and at least one of the plurality of
シミュレーションモデルとして三次元空間に複数の粒子がランダムに配向したモデルを得たい場合には、特定領域内に任意に配置した粒子の配置状態を所望の乱雑度になるまで変化(シャッフル)させていく方法が考えられる。しかしこの様な方法では、粒子の体積充填率が高い状態をモデル化することが難しかった。充填率が高い場合、初期状態から変化させようとしても粒子同士が干渉するため移動させる余地が殆ど無く、シャッフルを進めることが困難だからである。 When it is desired to obtain a model in which a plurality of particles are randomly oriented in a three-dimensional space as a simulation model, the arrangement state of particles arbitrarily arranged in a specific region is changed (shuffled) until the desired degree of randomness is achieved. I can think of a method. However, in such a method, it was difficult to model a state in which the volume filling rate of particles is high. When the filling rate is high, even if it is intended to change from the initial state, the particles interfere with each other, so there is almost no room for movement, and it is difficult to advance the shuffle.
それに対し、本実施形態に係るシミュレーション方法によれば、ある程度広い領域においてシャッフルを進め、充填領域を縮小させていくことで、充填領域内に複数の粒子がある程度ランダムに配向し、粒子の体積充填率が高いモデルを作成することができる。このようなモデルは、異方性がある形状の粒子を含む場合について、特に必要性が高い。各粒子の向きが、粒子群全体としての特性に強く影響を及ぼすからである。当該シミュレーション方法によれば、たとえば充填領域に対する複数の物体50の体積充填率が30%以上のシミュレーションモデルを作成することができる。
On the other hand, according to the simulation method according to the present embodiment, by advancing the shuffling in a somewhat wide area and reducing the filling area, a plurality of particles are randomly oriented in the filling area to some extent, and the volume filling of particles is performed. It is possible to create models with high rates. Such a model is particularly necessary for cases involving particles of anisotropic shape. This is because the orientation of each particle strongly affects the characteristics of the particle group as a whole. According to the simulation method, it is possible to create, for example, a simulation model in which the volume filling ratio of the plurality of
本実施形態に係るシミュレーション方法は、三次元空間における複数の物体50の配置状態をシミュレーションする方法である。本実施形態において複数の物体50の少なくとも1つは板状の物体であり、板状の物体は、円板状の物体である例について説明する。ただし、板状の物体を必ずしも含む必要は無い。
The simulation method according to the present embodiment is a method of simulating the arrangement of a plurality of
図3は、本実施形態に係る円板状の物体50の形状を示す斜視図である。ただし、物体50の形状は特に限定されない。ここで、板状とは平面図形と厚みlで決まる形状であり、円板状の場合、平面図形は半径rで決まる円である。なお、厚みは平面図形の幅より小さくても良いし、平面図形の幅以上であっても良い。複数の物体50は、同一の形状であっても良いし、それぞれ異なる形状であっても良い。または、複数の物体50には複数種類の形状の物体が含まれてもよい。本実施形態において、以下では、板状の物体50の表面のうち、平らな二つの面500をそれぞれ「主面」と呼ぶ。
FIG. 3 is a perspective view showing the shape of a disk-shaped
各物体50の「配置状態」は、三次元空間における物体50の位置または板状の物体50の方向の少なくとも一方を含む情報で定義される。たとえば三次元空間において、各物体50の位置は、直交座標系における物体50の中心点の座標(xi,yi,zi)で表される。そして、板状の物体50は位置と方向でその配置が定義される。ここで、物体50の中心点とは、物体50の重心であり、板状の物体50においては、厚み方向の中心、かつ主面に平行な断面における中心である。本実施形態において、三次元空間における板状の物体50の方向は、主面の法線ベクトルNi(nxi,nyi,nzi)で表される。なお、法線ベクトルNiは単位ベクトルであり、長さは1とする。ただし、三次元空間における物体50の位置及び向きは別の座標系等で表されても良い。
The “arrangement state” of each
空間状態データは、三次元空間における全ての複数の物体50の配置状態を示すデータである。ここで、空間状態データにおける三次元空間は、たとえば互いに直交するx軸、y軸およびz軸からなる直交座標系(「xyz座標系」)を用いて定義される。空間状態データには三次元空間に含まれる各物体50の状態データが含まれる。状態データは、物体50の形状、位置、向きを示すデータであり、たとえば半径r、厚みl、中心点の座標(xi,yi,zi)、主面の法線ベクトルNi(nxi,nyi,nzi)を示すデータである。なお、球状の物体である物体50については、厚みlおよび主面の法線ベクトルNi(nxi,nyi,nzi)を示すデータは省略されても良い。たとえば空間状態データは、各物体50の状態データを示すテーブルであり得る。なお、空間状態データは上記に限定されず、他の座標系やパラメータを用いて表された情報であり得る。
The spatial state data is data indicating the arrangement state of all the plurality of
また、本実施形態において、空間状態データは充填領域60の内外の境界を示す境界データをさらに含む。複数の物体50の全ては、有限の体積を有する充填領域60内に配置されている。
Further, in the present embodiment, the spatial state data further includes boundary data indicating the inner and outer boundaries of the filling
なお、初期状態の空間状態データにおいて、配置状態は特に限定されず、たとえば、複数の物体50が充填領域60内に規則正しく並んだ状態であって良い。
In the space state data in the initial state, the arrangement state is not particularly limited. For example, a plurality of
図2に戻り、本実施形態に係る複数の物体50は、球状の物体をさらに含む。本実施形態では、複数の物体50が、円板状の物体と、球状の物体とからなる例について説明する。ただし、これに限定されず、複数の物体50は任意の形状のものから構成されて良い。
Returning to FIG. 2, the plurality of
本実施形態において、複数の物体50の全ては、有限の体積を有する充填領域60内に配置される。充填領域60内で物体50を互いに干渉させないよう移動させていくことで、様々な配置状態を再現することができる。なお、充填領域60の形状は特に限定されない。たとえば充填領域60の形状は立方体や直方体等の多面体、球体、楕円回転体、柱状体、錐体等であり得る。
In the present embodiment, all of the plurality of
たとえば、本実施形態に係るシミュレーション方法を用いて、空間、固体、または液体内に特定の体積充填率で充填される粒子等の様々な配置状態をモデル化することができる。また、その変化の過程を再現することができる。特に、位置および方向がある程度ランダム化された当該粒子等を再現することで、実態に近いモデルを得ることができる。具体的には、特定の充填領域内に整列させた物体を徐々にランダム化することで、所望の乱雑度を有するモデルを得ることができる。そしてそのようなモデルを用いて、研究開発において熱伝導率、電気抵抗率等の計算を行うことができる。 For example, the simulation method according to the present embodiment can be used to model various arrangements of particles, etc. that are filled in a space, solid, or liquid with a specific volume filling factor. Also, the process of the change can be reproduced. In particular, a model close to the actual state can be obtained by reproducing the particles and the like in which the position and direction are randomized to some extent. Specifically, a model having a desired degree of randomness can be obtained by gradually randomizing objects aligned within a specific filling region. Then, using such a model, calculation of thermal conductivity, electrical resistivity and the like can be performed in research and development.
図4は、本実施形態に係るシミュレーション方法を実行するためのシミュレーション装置100の構成例を示す図である。シミュレーション装置100は、複数の物体50が配置された三次元空間のシミュレーション装置である。シミュレーション装置100は、仮充填領域定義部92、縮小干渉判定部94、および縮小次状態決定部96を備える。仮充填領域定義部92には、有限の体積を有する充填領域60内に配置された複数の物体50の配置状態を示す空間状態データのうち、充填領域60を示す情報を取得し、充填領域60を縮小させた仮充填領域を示す情報を生成する。縮小干渉判定部94は、複数の物体50の配置状態を示す情報および仮充填領域を示す情報に基づき、仮外部領域、又は仮境界と、少なくとも1つの物体50とが干渉しているか否かの判定を行う。縮小次状態決定部96は、縮小干渉判定部94が、仮外部領域又は仮境界と、少なくとも1つの物体50とが干渉していると判定した場合に、空間状態データを変更せず、いずれの物体50も仮外部領域とも仮境界とも干渉していないと判定した場合に、仮充填領域を新たな充填領域60とし、新たな充填領域60内に配置された複数の物体50の配置状態を示す情報を新たな空間状態データとする。
FIG. 4 is a diagram showing a configuration example of a
本実施形態に係るシミュレーション装置100は、物体移動部24をさらに備え、物体移動部24、仮充填領域定義部92、縮小干渉判定部94、および縮小次状態決定部96を動作させる状態変更処理が繰り返し行われる。物体移動部24は、空間状態データを取得し、複数の物体50の内、少なくとも一つを移動させ、移動後状態データを生成する。縮小干渉判定部94は、移動後状態データおよび仮充填領域を示す情報に基づき、仮外部領域、又は仮境界と、少なくとも1つの物体50とが干渉しているか否かの判定を行う。縮小次状態決定部96は、縮小干渉判定部94が、仮外部領域又は仮境界と、少なくとも1つの物体50とが干渉していると判定した場合に、空間状態データを変更せず、いずれの物体50も仮外部領域とも仮境界とも干渉していないと判定した場合に、仮充填領域を新たな充填領域60とし、新たな充填領域60内に配置された移動後状態データに基づく複数の物体50の配置状態を示す情報を、新たな空間状態データとする。
The
本実施形態に係るシミュレーション装置100は、記憶部26をさらに備える。なお、1度の状態変更処理とは、1度以上の物体移動工程S24と1度の縮小工程を含むものとする。シミュレーション装置100は、物体移動工程S24と縮小工程を組み合わせた状態変更処理と、単独の縮小工程とを後述する様に適宜組み合わせて実行する。ここで、全体における物体移動工程S24の頻度と縮小工程の頻度との割合に特に制限はない。
The
物体移動部24は、物体移動工程S24を行う。物体移動部24は記憶部26にあらかじめ保存された空間状態データを読み出して取得することができる。物体移動部24は、たとえば空間状態データに示された複数の物体50のうち少なくとも一つを移動させた後の複数の物体50の配置状態を示す移動後状態データを生成する。
The
なお、一度の物体移動工程S24では移動後状態データが一度生成されるものとする。物体移動部24は、一度の物体移動工程S24で一つの物体50のみを移動させても良いし、複数の物体50を移動させても良い。複数の物体50を一度に移動させる場合には、後述する移動対象物選択工程S12において、複数の移動対象物を一度に選択すれば良い。
In the one-object moving step S24, post-movement state data is generated once. The
一度の状態変更処理において、物体移動工程S24は1回のみ行われても良いし、複数回行われてもよい。たとえば、物体移動工程S24は、一度の状態変更処理において、特定回数繰り返し行われる。物体移動工程S24の繰り返しの回数は、あらかじめ定められ記憶部26に保持された回数を物体移動部24が読み出して取得しても良いし、ユーザーが、図示しない入力部に任意に入力した値を取得するようにしても良い。一度の状態変更処理における物体移動工程S24と縮小工程の頻度は、任意の割合とすることができる。
In one state change process, the object moving step S24 may be performed only once or may be performed multiple times. For example, the object moving step S24 is repeatedly performed a specific number of times in one state change process. As for the number of repetitions of the object moving step S24, the
複数回の物体移動工程S24によって複数個の物体50が移動された場合、たとえば移動された各物体50の配置状態を示すデータが少なくとも含まれる、複数の移動後状態データが生成される。もしくは、物体移動工程S24の度に移動後状態データが更新され、複数の移動された物体50の配置状態を示すデータが含まれる一つの移動後状態データが生成される。
When the plurality of
本実施形態において、移動後状態データが移動後の全ての物体50の配置状態を示すデータである例について説明する。ただし、これに限定されない。移動後状態データは少なくとも移動された物体50の配置状態を含めばよく、移動された物体50のみの配置状態を示す情報であっても良いし、移動された物体50とその周辺のいくつかの物体50の配置状態を示す情報であっても良い。また、移動後状態データは、空間状態データを構成する形状、位置、向き等の要素のうち、全ての要素を含んでもよいし、移動に関連した一部の要素のみから構成されていても良い。これらの例の場合、後に説明する縮小干渉判定部94は、たとえば移動後状態データと、記憶部26から別途取得した空間状態データとに基づいて、移動後の全ての物体50の配置状態を示す情報を生成し、判定を行うことができる。もしくは、縮小干渉判定部94はたとえば、移動後状態データに基づいて、移動した物体50についてのみ判定を行うように構成しても良い。
In the present embodiment, an example will be described in which the post-movement state data is data indicating the arrangement state of all the
物体移動工程S24については詳しく後述する。 The object moving step S24 will be described in detail later.
仮充填領域定義部92は、仮充填領域定義工程S92を行う。仮充填領域定義部92は、記憶部26から空間状態データのうち少なくとも充填領域60の内外の境界を示す境界データを取得する。そして、境界データに基づき、仮充填領域を示す情報を生成する。仮充填領域を示す情報は、たとえば、充填領域60と充填領域60の外の領域(以下、「外部領域」と呼ぶ。)との境界を、充填領域60の中心に向けて特定幅分移動させた後の仮境界の位置を示す情報であり得る。なお、境界を特定幅分移動させる代わりに、中心から境界までの距離が特定割合分減少するように移動させても良い。
The temporary filling
なお、仮充填領域定義工程S92は、縮小干渉判定工程S94の前に行われれば良く、物体移動工程S24との前後関係は特に制限されない。また、仮充填領域定義工程S92は物体移動工程S24と並行して行われても良い。 The temporary filling region defining step S92 may be performed before the reduction interference determining step S94, and the context with the object moving step S24 is not particularly limited. The temporary filling area defining step S92 may be performed in parallel with the object moving step S24.
縮小干渉判定部94は、仮外部領域または仮境界と、少なくとも1つの物体50とが干渉しているか否かを判定する。物体50の全てが有限の体積を有する充填領域60内に配置された状態を維持するためである。縮小干渉判定部94は物体移動部24から移動後状態データを取得する。なお、一度の状態変更処理において複数回の物体移動工程S24が行われる場合には、物体移動工程S24の繰り返しが終了した時点で移動後状態データを取得する。
The reduced
また、縮小干渉判定部94は仮充填領域定義部92から仮充填領域を示す情報を取得する。そして、縮小干渉判定部94は移動後状態データおよび仮充填領域を示す情報に基づいて、仮外部領域または仮境界と、少なくとも1つの物体50とが干渉しているか否かの判定を行う。
Further, the reduction
本実施形態において、複数の物体50は板状の物体および球状の物体を含むため、物体50と仮外部領域または仮境界とが干渉するか否かの判定の種類として、板状の物体と仮外部領域および仮境界との判定、および球状の物体と仮外部領域および仮境界との判定がある。このうち、球状の物体と仮外部領域および仮境界との判定は、球状の物体の中心点と仮境界との最小距離が、球状の物体の半径以下である場合、干渉していると判定され、球状の物体の中心点と仮境界との最小距離が、球状の物体の半径より大きい場合に干渉していないと判定される。
In the present embodiment, since the plurality of
図5は、板状の物体と、仮外部領域または仮境界とが干渉するか否かの判定方法について説明するための図である。以下では、仮充填領域がxyzの各軸と直交する面を有する直方体であり、板状の物体50の全体がz軸に垂直な互いに対向する2面の内側にあるか否かを判定する例を説明する。板状の物体50の全体が、x軸に垂直な互いに対向する2面の内側にあるか否か、およびy軸に垂直な互いに対向する2面の内側にあるか否かは、同様にして判定することができる。これらの3方向の判定の全てにおいて、内側にあると判定された場合、板状の物体50と仮外部領域または仮境界とは干渉しないと判定される。一方、3方向の判定のうち少なくとも一つについて内側に無いと判定された場合、板状の物体50と仮外部領域または仮境界とは干渉すると判定される。3方向の判定は全てされても良いし、いずれか一つについて内側に無いと判定された時点で、板状の物体と仮外部領域または仮境界とが干渉すると判定され、まだ行われていない判定が中止されてもよい。ここで、判定の順序は特に限定されない。なお、板状の物体と仮外部領域または仮境界とが干渉するか否かの判定方法は本例に限定されない。
FIG. 5 is a diagram for describing a method of determining whether or not a plate-like object interferes with a temporary external area or a temporary boundary. In the following, an example in which it is determined whether the temporary filling region is a rectangular parallelepiped having a plane orthogonal to each axis of xyz and the whole of the plate-
本図はz軸に垂直な2面に直交し、板状の物体50の中心軸(物体50の中心点を通り、法線ベクトルに平行な軸)を含む平面による、物体50の断面図である。本図中、ZmaxおよびZminは、仮境界を示す閾値である。四角形502は物体50の輪郭であり、点線504は物体50の厚さ方向の中心線である。そして、点Pmaxは物体50のうちz座標が最大となる点であり、点Pminは物体50のうちz座標が最小となる点である。
This figure is a cross-sectional view of the
板状の物体50の中心点Odと点Pmaxとのz座標の差は、本図中d1で示す長さとd2で示す長さに分けられる。d1の長さは、点線504と物体50の側面との交点のz座標と、点Pmaxのz座標との差の絶対値で表される。d2の長さは、点線504と物体50の側面との交点のz座標と、中心点Odのz座標との差の絶対値で表される。具体的にはd1およびd2の長さはそれぞれ以下の式(1)および式(2)で表され、法線ベクトルNi(nxi,nyi,nzi)を用いれば式(3)および式(4)で表される。なお、上述の様にNiは単位法線ベクトルである。ここで、角度θzは、法線ベクトルNiとz軸とのなす角である。
The difference in z-coordinate of the center point O d and the point P max of the plate-
ここで、物体50の中心点Odのz座標ziを用いて、Pmaxのz座標はzi+d1+d2で表され、Pminのz座標はzi−d1−d2で表されるため、以下の式(5)および式(6)が共に成り立つ場合、物体50の全体がz軸に垂直な互いに対向する2面の内側にあると判定できる。一方、式(5)および式(6)の少なくとも一方が成り立たない場合、物体50の少なくとも一部がz軸に垂直な対向する2面の内側にないと判定できる。式(5)および式(6)が成り立つか否かの判定は順に行い、一方が成り立たないと判定された場合、物体50の少なくとも一部がz軸に垂直な対向する2面の内側にないと判定され、まだ行われていない他方の判定が中止されても良い。なお、判定の順序は特に限定されない。
Here, using the z-coordinate z i of the center point O d of the
なお、仮充填領域が球状である場合、板状の物体50の2つの主面500の各中心点と、仮充填領域の球の中心とが含まれる平面における断面での状態に基づき、板状の物体と仮外部領域または仮境界とが干渉するか否かの判定ができる。当該断面において、物体50の輪郭である四角形の4つの頂点が、全て当該球の輪郭である円の内側にある場合、板状の物体は仮外部領域とも仮境界とも干渉していないと判定される。一方、少なくとも一つの頂点が当該円の内側にない場合、板状の物体と仮外部領域または仮境界とは干渉していると判定される。4つの頂点の判定は全てされても良いし、いずれか一つについて円の内側に無いと判定された時点で、板状の物体と仮外部領域または仮境界とが干渉すると判定されて、まだ行われていない判定が中止されてもよい。ここで、判定の順序は特に限定されない。なお、板状の物体と球状の仮外部領域または仮境界とが干渉するか否かの判定方法は本例に限定されない。
When the temporary filling region is spherical, the plate shape is based on the state of the cross section in the plane including the respective center points of the two
なお、縮小干渉判定部94は、全ての物体50について、判定しても良いし、物体移動部24で移動させた物体50のみについて判定を行っても良い。そうすることで、計算量を低減できる。
Note that the reduction
なお、縮小干渉判定工程S94において、仮外部領域又は仮境界と物体50とが干渉しているか否かの判定を行う代わりに、仮外部領域と物体50とが干渉しているか否かの判定のみを行い、仮外部領域と物体50とが干渉していないと判定された場合に、物体50は境界とも干渉していないとみなしてもよい。たとえば、式(5)または式(6)において左辺と右辺とが等しくなる場合、物体50と境界のみとが重なると言えるが、浮動小数点数を用いた演算を行った場合、演算誤差が生じる。そのため、コンピュータを用いた判定において、等号が成り立つことは殆ど無いといってよく、等号の有り無しで判定結果が同様となる。
In the reduced interference determination step S94, instead of determining whether the temporary external region or the temporary boundary and the
なお、充填領域60内における物体50の占有体積を厳密に制限する必要が無い場合等には、縮小干渉判定部94が物体50と仮外部領域または仮境界とが干渉しているか否かを判定する代わりに、物体50の中心点が仮充填領域の内側にあるかどうかを判定するようにしても良い。そうすれば、計算量を低減することができる。その場合、物体50の中心点が仮充填領域の内側にある場合に、物体50が仮外部領域とも仮境界とも干渉していないとみなし、それ以外の場合に物体50と仮外部領域または仮境界とが干渉しているとみなして以後の工程を行えばよい。
In the case where it is not necessary to strictly limit the occupied volume of the
図4に戻り、縮小次状態決定部96は、縮小干渉判定部94から縮小干渉判定工程S94の判定結果を取得する。また、縮小次状態決定部96はたとえば縮小干渉判定部94から移動後状態データを取得する。縮小次状態決定部96は、縮小干渉判定部94が、仮外部領域または仮境界と、少なくとも1つの物体50とが干渉していると判定した場合には、空間状態データを変更しない。一方、いずれの物体50も仮外部領域とも仮境界とも干渉していないと判定された場合に、仮充填領域を新たな充填領域60とし、新たな充填領域60内に配置された複数の物体50の配置状態を示す情報を新たな空間状態データとする。ここで、当該配置状態は、移動後状態データに基づく移動後の配置状態である。たとえば縮小次状態決定部96は新たな空間状態データを記憶部26に記憶させてもよい。その際、変更前の空間状態データは記憶部26から削除されても良いし、前時点の空間状態データとして引き続き記憶部26に保持されても良い。各時点の空間状態データを順に並べることで、充填領域60の段階的な縮小の過程をシミュレーションすることもできる。
Returning to FIG. 4, the reduction next
縮小次状態決定部96が空間状態データを変更しなかった場合、再度、状態変更処理を行う。すなわち、物体移動工程S24および縮小工程を行う。物体移動工程S24を行うことで、物体50の配置が変化し、さらに縮小できる可能性があるからである。一方、縮小次状態決定部96が空間状態データを変更した場合、再度状態変更処理、すなわち物体移動工程S24および縮小工程の両方を行っても良いし、再度縮小工程のみを行ってもよい。繰り返し縮小工程を行うことで、より高密度で充填されたモデルを作成することが出来る。
When the reduction next
状態変更処理の繰り返しは、特定回数、状態変更処理が行われた時点で終了することができる。もしくは、縮小次状態決定部96によって空間状態データが特定回数変更された時点で終了することができる。これらの回数は、あらかじめ定められ記憶部26に保持された回数を物体移動部24が読み出して取得しても良いし、ユーザーが、図示しない入力部に任意に入力した値を取得するようにしても良い。
The repetition of the state change process can be ended a specific number of times when the state change process is performed. Alternatively, it can be terminated when the spatial state data has been changed a specific number of times by the reduction next
物体移動部24および物体移動工程S24について以下に詳しく説明する。
The
図6は、本実施形態に係る物体移動工程S24のフローである。本実施形態に係る物体移動工程S24は、移動対象物選択工程S12、移動情報生成工程S14、対象物移動工程S16、移動干渉判定工程S70、および移動次状態決定工程S18が含まれる。移動対象物選択工程S12では、複数の物体50の内、移動させようとする少なくとも1つの移動対象物56が選択される。移動情報生成工程S14では、移動対象物56をどのように移動させるかを示す移動情報が生成される。対象物移動工程S16では、移動情報に基づき移動対象物56を移動させた後の、三次元空間における少なくとも移動対象物56の配置状態に関する情報を含む、仮移動後状態データが生成される。
FIG. 6 is a flow of an object moving step S24 according to the present embodiment. The object movement step S24 according to the present embodiment includes a movement target object selection step S12, a movement information generation step S14, an object movement step S16, a movement interference determination step S70, and a movement next state determination step S18. In the moving object selection step S12, at least one moving object 56 to be moved is selected among the plurality of
移動干渉判定工程S70では、仮移動後状態データに基づき、三次元空間において複数の物体50が互いに干渉しているか否かが判定される。また、移動干渉判定工程S70では、外部領域、又は充填領域60と外部領域との境界と、少なくとも1つの物体50とが干渉しているか否かが判定される。移動次状態決定工程S18では、移動干渉判定工程S70において複数の物体50が互いに干渉していないと判定され、かつ、いずれの物体50も外部領域とも当該境界とも干渉していないと判定された場合に、仮移動後状態データが移動後状態データとして生成される。対象物移動工程S16では、移動対象物56の平行移動および回転移動のうち少なくとも一方が行われる。以下に詳細に説明する。
In the movement interference determination step S70, it is determined whether or not a plurality of
図7は、本実施形態に係る物体移動部24の構成を示すブロック図である。本実施形態に係る物体移動部24は、移動対象物選択部12、移動情報生成部14、対象物移動部16、移動干渉判定部70、および移動次状態決定部18を含む。移動対象物選択部12は、三次元空間における複数の物体50の配置状態を示す空間状態データを取得する。そして、移動対象物選択部12は、複数の物体50の内、移動させようとする少なくとも1つの移動対象物56を選択する(移動対象物選択工程S12)。移動情報生成部14は、移動対象物56をどのように移動させるかを示す移動情報を生成する(移動情報生成工程S14)。対象物移動部16は、移動情報に基づき移動対象物56を移動させた後の、三次元空間における少なくとも移動対象物56の配置状態に関する情報を含む、仮移動後状態データを生成する(対象物移動工程S16)。移動干渉判定部70は、仮移動後状態データに基づき、三次元空間において複数の物体50が互いに干渉しているか否かを判定する(移動干渉判定工程S70)。移動次状態決定部18は、移動干渉判定部70において、複数の物体50が互いに干渉していないと判定された場合に、移動情報に基づき移動対象物56を移動させた後の、三次元空間における複数の物体50の配置状態を示す情報を移動後状態データとして生成する(移動次状態決定工程S18)。以下に詳しく説明する。
FIG. 7 is a block diagram showing the configuration of the
移動対象物選択部12は、移動対象物選択工程S12を行う。すなわち、移動対象物選択部12は、三次元空間における複数の物体50全ての配置状態を示す空間状態データを取得する。
The moving
そして、移動対象物選択部12は、複数の物体50の内、移動させようとする少なくとも1つの移動対象物56を選択する。移動対象物56は、複数の物体50の全ての中から、任意に選択することができる。配置状態をランダム化する観点から、ナンバリングされた複数の物体50から、一様乱数等を用いてランダムに選択することが好ましい。
Then, the moving
移動情報生成部14は、移動情報生成工程S14を行う。すなわち移動情報生成部14は、移動対象物56をどのように移動させるかを示す移動情報を生成する。本実施形態に係る移動情報生成部14では、ランダム化のため一様乱数を用いて移動情報を生成する。移動対象物56の移動には、平行移動と、回転移動とがある。
The movement
平行移動に関する情報は、たとえば移動前後の各座標の差Δxp、ΔypおよびΔzpで表される。ここで、Δxp、ΔypおよびΔzpは、一様乱数ap、θp、およびφp(0≦ap<apmax、0≦θp<2π、−π/2≦φp<+π/2)を用いてそれぞれΔxp=ap・cosφp・cosθp、Δyp=ap・cosφp・sinθp、Δzp=ap・sinφpで表される。ただし、これに限定されない。平行移動に関する情報は、たとえば移動後の座標を表す情報であっても良い。 The information on the parallel movement is represented, for example, by differences Δx p , Δy p and Δz p of the coordinates before and after movement. Here, Δx p , Δy p and Δz p are uniform random numbers a p , θ p , and φ p (0 ≦ a p <a p max , 0 ≦ θ p <2π, −π / 2 ≦ φ p <+ π / 2) respectively, using the Δx p = a p · cosφ p · cosθ p, Δy p = a p · cosφ p · sinθ p, represented by Δz p = a p · sinφ p . However, it is not limited to this. The information relating to parallel movement may be, for example, information representing coordinates after movement.
回転移動に関する情報は、たとえば移動後の法線ベクトル(nxr,nyr,nzr)で表される。ここで、nxr,nyr、およびnzrは、一様乱数θrおよびφr(0≦θr<2π、−π/2≦φr<+π/2)を用いてそれぞれnxr=cosφr・cosθr、nyr=cosφr・sinθr、およびnzr=sinφrで表される。ただし、これに限定されない。回転移動に関する情報は、たとえば移動前後の法線ベクトルの向きの差を示す情報であっても良い。 Information on rotational movement is represented, for example, by a normal vector (n xr , n yr , n zr ) after movement. Here, n xr, n yr, and n zr are uniform random number theta r and φ r (0 ≦ θr <2π , -π / 2 ≦ φ r <+ π / 2) respectively, using the n xr = cosφ r It is represented by cos θ r , n yr = cos φ r · sin θ r , and n zr = sin φ r . However, it is not limited to this. The information on the rotational movement may be, for example, information indicating the difference in the direction of the normal vector before and after the movement.
移動情報は、平行移動に関する情報、および回転移動に関する情報の少なくとも一方であっても良いし、平行移動に関する情報、および回転移動に関する情報の両方を含んでも良い。ただし、物体移動工程S24が繰り返される中で平行移動および回転移動がランダムに行われるように、移動情報が生成されるようにすれば、配置状態をランダム化することができる。 The movement information may be at least one of information on parallel movement and information on rotational movement, and may include both information on parallel movement and information on rotational movement. However, if movement information is generated so that parallel movement and rotational movement are randomly performed while the object movement step S24 is repeated, the arrangement state can be randomized.
なお、移動対象物選択工程S12と移動情報生成工程S14の順序は問わず、移動対象物選択工程S12の後に移動情報生成工程S14が行われても良いし、移動情報生成工程S14の後に移動対象物選択工程S12が行われても良い。あるいは、移動対象物選択工程S12と移動情報生成工程S14とが同時に行われても良い。 Note that the movement information generation step S14 may be performed after the movement object selection step S12 regardless of the order of the movement object selection step S12 and the movement information generation step S14, or the movement object may be moved after the movement information generation step S14. The item selection step S12 may be performed. Alternatively, the movement target object selection step S12 and the movement information generation step S14 may be performed simultaneously.
対象物移動部16は、対象物移動工程S16を行う。すなわち、対象物移動部16は、移動情報に基づき移動対象物56を移動させた後の、三次元空間における少なくとも前記移動対象物の配置状態に関する情報を含む、仮移動後状態データを生成する。本実施形態では、仮移動後状態データは、全ての物体50の配置状態を示す情報である場合について説明する。
The
対象物移動部16は、仮移動後状態データを生成するために、移動対象物選択部12から、移動対象物56を示すデータを取得し、移動情報生成部14から移動情報を取得し、記憶部26から空間状態データを取得する。そして、空間状態データが示す配置状態に対し、移動対象物56を移動情報が示す様に移動させ、その後の三次元空間における複数の物体50の配置状態を示すデータを仮移動後状態データとして生成する。たとえば、上記の移動情報の例では、移動前の移動対象物56の中心座標を(x0,y0,z0)とした場合、平行移動後の中心座標は(x0+Δxp,y0+Δyp,z0+Δzp)とされる。また、たとえば移動前の移動対象物56の法線ベクトルに関わらず、回転移動後の法線ベクトルは(nxr,nyr,nzr)とされる。
The
なお、移動に制限を設けることで、物体50の向きを制御しつつランダム化することができ、物体50の向きが所望の異方性を有するモデルを作成できる。移動に制限を設ける方法としては、たとえば移動情報の生成に用いる乱数の範囲を制限する方法が挙げられる。
In addition, by setting a restriction on movement, it is possible to randomize while controlling the direction of the
移動干渉判定部70は、移動干渉判定工程S70を行う。移動干渉判定部70は、対象物移動部16から仮移動後状態データを取得する。そして、仮移動後状態データが示す配置状態において、複数の物体50が互いに干渉していないかどうかを判定する。移動干渉判定部70は、たとえば、複数の物体50のうち任意の2つの物体50を選択し、当該2つの物体50が互いに干渉しているか否かを判定する。そして、全ての物体50が他の物体50と干渉していない場合、複数の物体50が互いに干渉していないと判定する。一方、少なくとも一つの物体50が他の物体50と干渉している場合、物体50同士の干渉が生じていると判定する。ここで、物体50同士が干渉している状態とは、三次元空間中の1点に2つ以上の物体50の一部が存在する状態をいう。現実にはこのような状態は生じ得ないが、計算上、この様な状態が仮定され得る。現実に則したシミュレーションを行いたい場合には、干渉状態は許されない状態として禁止される必要があり、干渉状態を生じていないか否かを判定することが重要である。
The movement
なお、物体50同士が互いに干渉しているか否かの判定は全ての物体50に対して行われる必要は無く、いずれか一つの物体50が他の物体50と干渉していると判定された時点で、物体50同士の干渉が生じていると判定され、まだ行われていない物体50に関する判定が中止されても良い。ここで、複数の物体50の判定を行う順序は特に限定されない。
It is not necessary to determine whether or not the
本実施形態において、複数の物体50は板状の物体および球状の物体を含むため、2つの物体50同士が干渉するか否かの判定の種類として、板状の物体同士の判定、板状の物体と球状の物体との判定、球状の物体同士の判定がある。このうち、球状の物体同士の判定は、二つの球状の物体の中心間距離が両球状の物体の半径の和以下である場合、干渉していると判定され、それ以外の場合に干渉していないと判定される。板状の物体同士の判定、および板状の物体と球状の物体との判定については後に詳しく説明する。
In the present embodiment, since the plurality of
また、複数の物体50の全ては、有限の体積を有する充填領域60内に配置されている。この状態を維持するため、移動干渉判定工程S70では、外部領域、または充填領域60と外部領域との境界と、少なくとも1つの物体50とが干渉しているか否かがさらに判定される。
Also, all of the plurality of
移動干渉判定部70は、たとえば、複数の物体50のうち任意の1つの物体50を選択し、当該物体50が外部領域または当該境界と干渉しているか否かを判定する。そして、複数の物体50のうち、少なくとも1つの物体50と外部領域または当該境界とが干渉している場合、物体50と外部領域または当該境界との干渉が生じていると判定する。一方、複数の物体50の全てが外部領域とも当該境界とも干渉していない場合、物体50と外部領域または当該境界との干渉が生じていないと判定する。ここで、物体50と外部領域または当該境界とが干渉している状態とは、物体50の少なくとも一部分が充填領域60の外または境界上にある状態をいう。
For example, the movement
なお、物体50と外部領域または当該境界との干渉が生じているか否かの判定は全ての物体50に対して行われる必要は無く、いずれか一つの物体50が外部領域または当該境界と干渉していると判定された時点で、物体50と外部領域または当該境界との干渉が生じていると判定され、まだ行われていない物体50に関する判定が中止されても良い。ここで、複数の物体50の判定を行う順序は特に限定されない。
Note that it is not necessary to determine whether or not the
物体50と外部領域または当該境界との干渉が生じているか否かの判定は、上述した縮小干渉判定部94における、物体50と仮外部領域または仮境界との干渉が生じているか否かの判定と同様に行うことができる。
The determination as to whether or not the
なお、移動干渉判定部70は、全ての物体50について、判定しても良いし、移動対象物56のみについて判定を行っても良い。そうすることで、計算量を低減できる。
The movement
なお、充填領域60内における物体50の占有体積を厳密に制限する必要が無い場合等には、移動干渉判定部70が物体50と外部領域または当該境界とが干渉しているか否かを判定する代わりに、物体50の中心点が充填領域60の内側にあるかどうかを判定するようにしても良い。そうすれば、計算量を低減することができる。その場合、物体50の中心点が充填領域60の内側にある場合に、物体50が外部領域とも当該境界とも干渉していないとみなし、それ以外の場合に物体50と外部領域または当該境界とが干渉しているとみなして以後の工程を行えばよい。
When it is not necessary to strictly limit the occupied volume of the
なお、移動干渉判定工程S70において、充填領域60、又は充填領域60と外部領域との物体50とが干渉しているか否かの判定を行う代わりに、外部領域と物体50とが干渉しているか否かの判定のみを行い、外部領域と物体50とが干渉していないと判定された場合に、物体50が当該境界とも干渉していないとみなしてもよい。
Whether the external area and the
移動次状態決定部18は、移動次状態決定工程S18を行う。移動次状態決定部18は移動干渉判定部70から仮移動後状態データおよび、移動干渉判定部70による判定結果を示すデータを取得する。そして、移動次状態決定部18は、移動干渉判定工程S70において、複数の物体50が互いに干渉していないと判定され、かつ、いずれの物体50も、外部領域とも充填領域60と外部領域との境界とも干渉していないと判定された場合に、対象物移動部16により生成された仮移動後状態データを移動後状態データとして生成する。一方、その他の場合、すなわちいずれかの物体50同士で干渉を生じている場合、またはいずれかの物体50と外部領域または当該境界とが干渉している場合には、移動後状態データを生成しない。移動後状態データが生成されなかった場合、再度、移動対象物選択工程S12、移動情報生成工程S14、対象物移動工程S16、移動干渉判定工程S70、および移動次状態決定工程S18が行われ、少なくとも1度、移動後状態データが生成されるまで繰り返される。生成された移動後状態データは、順に記憶部26に記憶される様にしても良い。移動後状態データを順に並べることで、ランダム化の過程をシミュレーションすることもできる。
The movement next
なお、本実施形態では、仮移動後状態データは、全ての物体50の配置状態を示す情報である場合について説明しているが、これに限定されない。たとえば、仮移動後状態データは、移動対象物56の配置状態を示す情報を少なくとも含めば良く、移動対象物56のみの配置状態を示す情報であっても良いし、移動対象物56とその周辺のいくつかの物体50の配置状態を示す情報であっても良い。また、仮移動後状態データは、空間状態データを構成する形状、位置、向き等の要素のうち、全ての要素を含んでもよいし、移動に関連した一部の要素のみから構成されていても良い。これらの例の場合、移動干渉判定部70はたとえば対象物移動部16から取得した仮移動後状態データと、記憶部26から取得した空間状態データとに基づいて、移動対象物56が移動した後の全ての物体50の配置状態を示す情報を生成し、判定を行うことができる。もしくは、移動干渉判定部70はたとえば、対象物移動部16から取得した仮移動後状態データに基づいて、移動対象物56とその周辺のいくつかの物体50の配置状態のみについて干渉判定を行ってもよい。
In the present embodiment, although the temporary movement state data is information indicating the arrangement state of all the
なお、本実施形態では、物体移動工程S24中に移動干渉判定工程S70を含む例について説明したが、物体移動工程S24において移動干渉判定工程S70を行わず、対象物移動工程S16で生成された仮移動後状態データを移動後状態データとして生成しても良い。その場合、縮小干渉判定工程S94において、仮外部領域または仮境界と、少なくとも1つの物体50とが干渉しているか否かの判定に加え、複数の物体50が互いに干渉していないかどうかの判定をさらに行い、いずれの干渉も生じていない場合に、空間状態データを変更すればよい。また、移動干渉判定部70は、物体50同士の干渉の有無のみを判定し、物体50と外部領域または境界との判定を省略しても良い。
In the present embodiment, although an example including the movement interference determination step S70 in the object movement step S24 has been described, the movement interference determination step S70 is not performed in the object movement step S24, and the temporary generated in the object movement step S16. The post-movement state data may be generated as post-movement state data. In that case, in the reduction interference determination step S94, in addition to the determination as to whether or not the temporary external region or the temporary boundary and at least one
[板状の物体同士の干渉判定]
次に、複数の物体50が第1の板状の物体および第2の板状の物体を少なくとも含み、移動干渉判定部70が第1の板状の物体と第2の板状の物体とが干渉するか否かを判定する方法について詳細を述べる。
[Detection of interference between plate-like objects]
Next, the plurality of
図8は、本実施形態に係る移動干渉判定工程S70のフローである。
本実施形態に係る移動干渉判定工程S70は、判定対象物選択工程S10、座標定義工程S20、投影像判定工程S30、および、立体判定工程S40を含む。判定対象物選択工程S10では、複数の物体50から、第1の板状の物体が第1対象物52として選択され、第2の板状の物体が第2対象物54として選択される。座標定義工程S20では、第1対象物52および第2対象物54に対し、1つの直交座標系が定義される。投影像判定工程S30では、直交座標系の基準面に投影した、第1対象物52および第2対象物54の投影像が互いに重なるか否かが判定される。立体判定工程S40では、三次元空間において第1対象物52と第2対象物54とが干渉するか否かが判定される。ここで、第1対象物52および第2対象物54は板状であり、当該直交座標系は、互いに直交するe1軸、e2軸、およびe3軸からなる。
FIG. 8 is a flow of the movement interference determination step S70 according to the present embodiment.
The movement interference determination step S70 according to the present embodiment includes a determination target object selection step S10, a coordinate definition step S20, a projection image determination step S30, and a solid determination step S40. In the determination object selection step S10, a first plate-like object is selected as the
そして、投影像判定工程S30は、第1基準面判定工程、第2基準面判定工程、および第3基準面判定工程のうち少なくとも一つを含む。第1基準面判定工程では、e1軸とe2軸とからなる第1基準面において、第1対象物52および第2対象物54の投影像が互いに重なるか否かが判定される。第2基準面判定工程では、e2軸とe3軸とからなる第2基準面において、第1対象物52および第2対象物54の投影像が互いに重なるか否かが判定される。第3基準面判定工程では、e3軸とe1軸とからなる第3基準面において、第1対象物52および第2対象物54の投影像が互いに重なるか否かが判定される。投影像判定工程S30で第1基準面、第2基準面、および第3基準面のうち少なくとも一つにおいて第1対象物52および第2対象物54の投影像が互いに重ならないと判定された場合に、立体判定工程S40では、第1対象物52と第2対象物54とが干渉していない状態であると判定される。以下に詳細に説明する。
The projected image determination step S30 includes at least one of the first reference surface determination step, the second reference surface determination step, and the third reference surface determination step. In the first reference surface determination step, it is determined whether or not the projected images of the
本実施形態に係る移動干渉判定工程S70は、少なくとも1つの基準平面に投影した、第1対象物52および第2対象物54の投影像が互いに重なるか否かを判定し、それらの投影像が互いに重なるか否かの判定結果に基づいて、第1対象物52と第2対象物54とが互いに干渉するか否かを判定する。
The movement interference determination step S70 according to the present embodiment determines whether or not the projected images of the
本実施形態に係る移動干渉判定工程S70では、三次元空間において任意の位置及び角度を有する複数の板状の物体50が、互いに干渉しているかどうかが判定される。
In the movement interference determination step S70 according to the present embodiment, it is determined whether a plurality of plate-
複数の球形の物体同士が干渉するか否かは、その中心間距離と半径のみにより容易に判定が可能である。具体的には、二つの球の中心間距離がそれら二つの球の半径の和よりも小さい場合、干渉していると判定できる。それに対し、本実施形態に係る板状の物体50は、この様に三次元に異方的な形状を有し、さらにそれぞれが方向を有するため、球状の物体の場合と同じ方法では正確な干渉判定ができない。たとえば、主面同士が平行である場合等、二つの物体50の中心間距離がそれらの外接球の半径の和よりも小さい場合でも、干渉していないという状態があり得る。本実施形態に係る移動干渉判定工程S70では、物体50の形状および向きを加味して判定されるため、より正確な干渉判定が可能である。
Whether or not a plurality of spherical objects interfere with each other can be easily determined only by the center-to-center distance and the radius. Specifically, if the center-to-center distance between two spheres is smaller than the sum of the radii of the two spheres, it can be determined that interference occurs. On the other hand, the plate-
図9は、本実施形態に係る移動干渉判定工程S70を用いて干渉判定を行う移動干渉判定部70のブロック図である。本図では、板状の物体50同士の干渉を判定する部分についてのみを示している。移動干渉判定部70は、判定対象物選択部10、座標定義部20、投影像判定部30、および立体判定部40を備える。判定対象物選択部10は、複数の物体50から、第1対象物52および第2対象物54を選択する(判定対象物選択工程S10)。座標定義部20は、第1対象物52および第2対象物54に対し、1つの直交座標系を定義する(座標定義工程S20)。投影像判定部30は、当該直交座標系の基準面に投影した、第1対象物52および第2対象物54の投影像が互いに重なるか否かを判定する(投影像判定工程S30)。立体判定部40は、三次元空間において、第1対象物52と第2対象物54とが干渉するか否かを判定する(立体判定工程S40)。具体的には、立体判定部40は、投影像判定部30で第1基準面、第2基準面、および第3基準面のうち少なくとも一つにおいて第1対象物52および第2対象物54の投影像が互いに重ならないと判定された場合に、第1対象物52と第2対象物54とが干渉していない状態であると判定する。以下に、各工程の内容と共に詳細を説明する。
FIG. 9 is a block diagram of the movement
判定対象物選択部10は、三次元空間における全ての複数の物体50の状態を示す仮移動後状態データを対象物移動部16から取得する。なお、判定対象物選択部10は、記憶部26に一度保存された仮移動後状態データを読み出して取得するようにしてもよい。
The determination target
判定対象物選択部10は、取得した仮移動後状態データに基づき判定対象物選択工程S10を行う。判定対象物選択工程S10では、複数の物体50から、第1対象物52および第2対象物54が選択される。第1対象物52および第2対象物54としては、複数の物体50のうち異なる2つの板状の物体50が任意に選択されうる。なお、二つの物体50の中心間距離が各物体50の外接球の半径rcsの和よりも大きい場合には、当該二つの物体50は干渉しないとして、選択する組み合わせから排除されてもよい。たとえば、円板状の物体50について、外接球の半径rcsは、円板の中心軸を通る断面での対角線の半分の長さ、すなわち((l2/4)+r2)1/2である。
The determination target
判定対象物選択部10は、選択した第1対象物52および第2対象物54それぞれの状態データを、仮移動後状態データから抽出する。以下では、選択した第1対象物52の半径をrp、厚みをlp、中心点の座標を(xp,yp,zp)、法線ベクトルをNp(nxp,nyp,nzp)と表し、第2対象物54の半径をrc、厚みをlc、中心点の座標を(xc,yc,zc)、法線ベクトルをNc(nxc,nyc,nzc)と表す。なお、上述の様に法線ベクトルは単位ベクトルであり、長さは1とする。
The determination target
座標定義部20は、座標定義工程S20を行う。座標定義部20は、判定対象物選択部10が抽出した第1対象物52および第2対象物54の状態データを取得する。そして座標定義部20は、第1対象物52および第2対象物54の状態データに基づき、直交座標系を定義する。
The coordinate
図10は、座標定義工程S20で定義する直交座標系を示す図である。
本実施形態に係る座標定義工程S20で定義する直交座標系は、互いに直交するe1軸、e2軸、およびe3軸からなる。座標定義工程S20では、第1対象物52の中心が原点と一致し、第1対象物52の主面とe3軸とが直交し、第2対象物54の主面の法線ベクトルのe2成分が0となるよう直交座標系が定義される。直交座標系をこのように定義することにより、判定に用いる条件を簡単な数式で表すことができ、計算量を低減することができる。
FIG. 10 is a diagram showing an orthogonal coordinate system defined in the coordinate definition step S20.
The orthogonal coordinate system defined in the coordinate definition step S20 according to the present embodiment includes an e 1 axis, an e 2 axis, and an e 3 axis orthogonal to each other. The coordinate definition step S20, the center of the
上述したとおり、第1対象物52の半径はrp、厚みはlpであり、第2対象物54の半径はrc、厚みはlcであり、直交座標系における第2対象物54の中心座標は(a,b,c)であり、第1対象物52の主面の法線ベクトルと第2対象物54の主面の法線ベクトルとのなす角は、0rad以上π/2rad以下の角度θで表すことができる。ここで、物体50は反転しても状態が変わらないため、法線ベクトルは反転されても良い。本図中、Np'は第1対象物52の主面の法線ベクトルを示し、Nc'は第2対象物54の主面の法線ベクトルを示している。
As described above, the radius of the
なお、座標定義工程S20において定義する座標系は、特に限定されない。上記とは異なるような軸を定義した場合には、それに応じて以下の判定に用いる数式等は適宜変形されればよい。 The coordinate system defined in the coordinate definition step S20 is not particularly limited. In the case where an axis different from the above is defined, the mathematical expressions and the like used for the following determination may be appropriately modified accordingly.
座標定義工程S20で定義される直交座標系は、三次元空間の仮移動後状態データにおける直交座標と同じであっても良いし異なっていても良い。以下では、三次元空間の仮移動後状態データにおける直交座標を「xyz座標系」座標定義工程S20で定義される座標系を「e1e2e3座標系」と呼ぶ。 The orthogonal coordinate system defined in the coordinate definition step S20 may be the same as or different from the orthogonal coordinates in the temporarily moved state data of the three-dimensional space. Hereinafter, the coordinate system defined in the “xyz coordinate system” coordinate definition step S20 is referred to as “e 1 e 2 e 3 coordinate system”, in the three-dimensional space after temporary movement state data.
e1e2e3座標系は、三次元空間における任意の二つの板状の物体50に対して定義されうる。ここで、xyz座標系と、e1e2e3座標系とは、以下の式(7)の関係で変換可能である。ただし、式(7)中のAは以下の式(8)で表される。
An e 1 e 2 e 3 coordinate system may be defined for any two plate-
e1e2e3座標系において、第1対象物52の中心点の座標は(0,0,0)、法線ベクトルは(0,0,1)で表される。また、第2対象物54の中心点の座標(a,b,c)および法線ベクトルNc'(nxc',nyc',nzc')は、それぞれ以下の式(9)および式(10)で表される。なお、式(9)中、Δx、Δy、Δzはそれぞれ、xyz座標系における第1対象物52の中心点の座標(xp,yp,zp)、第2対象物53の中心点の座標(xc,yc,zc)を用いて、Δx=xc−xp、Δy=yc−yp、Δz=zc−zpで表される。
In the e 1 e 2 e 3 coordinate system, the coordinates of the center point of the
この様に、座標定義部20は、第2対象物54の中心点の座標(a,b,c)および法線ベクトルNc'(nxc',nyc',nzc')を示すデータを生成する。
As described above, the coordinate
図9に戻り、投影像判定部30は、座標定義部20から、第1対象物52の半径rpおよび厚みlpと、第2対象物54の半径rc、厚みlc、中心点の座標(a,b,c)、および法線ベクトルNc'(nxc',nyc',nzc')とを示すデータを取得し、当該データに基づいて投影像判定工程S30を行う。投影像判定工程S30では、e1e2e3座標系の3つの基準面に投影した、第1対象物52および第2対象物54の投影像が互いに重なるか否かが判定される。
Returning to FIG. 9, the projection
図11は、投影像判定工程S30および立体判定工程S40の内容示すフローである。投影像判定工程S30は、第1基準面判定工程S32、第2基準面判定工程S34、および第3基準面判定工程S36を含む。第1基準面判定工程S32では、e1軸とe2軸とからなる第1基準面において、第1対象物52の投影像および第2対象物54の投影像が互いに重なるか否かが判定される。第2基準面判定工程S34では、e2軸とe3軸とからなる第2基準面において、第1対象物52の投影像および第2対象物54の投影像が互いに重なるか否かが判定される。第3基準面判定工程S36では、e3軸とe1軸とからなる第3基準面において、第1対象物52の投影像および第2対象物54の投影像が互いに重なるか否かが判定される。
FIG. 11 is a flow showing the contents of a projected image determination step S30 and a solid determination step S40. The projected image determination step S30 includes a first reference surface determination step S32, a second reference surface determination step S34, and a third reference surface determination step S36. In the first reference surface determining step S32, in the first reference plane consisting of e 1 axis and e 2 axis, whether the projected image of the projection image and the
立体判定工程S40では、三次元空間において第1対象物52と第2対象物54とが干渉するか否かが判定される。具体的には、投影像判定工程S30の判定結果に基づき、第1基準面判定工程S32、第2基準面判定工程S34、および第3基準面判定工程S36の少なくともいずれか一つにおいて第1対象物52および第2対象物54の投影像が互いに重ならないと判定された場合に、第1対象物52と第2対象物54とが干渉していない状態であると判定される。一方、第1基準面判定工程S32、第2基準面判定工程S34、および第3基準面判定工程S36の全てにおいて、第1対象物52および第2対象物54の投影像が互いに重なると判定された場合に、第1対象物52と第2対象物54とが干渉している状態であると判定される。
In the solid determination step S40, it is determined whether or not the
なお、第1基準面判定工程S32、第2基準面判定工程S34、および第3基準面判定工程S36は、全て行われても良いし、いずれか一つの工程で、第1対象物52および第2対象物54の投影像が互いに重ならないと判定された時点で、まだ行われていない他の工程が中止され、第1対象物52と第2対象物54とが干渉していない状態であると判定されてもよい。なお、第1基準面判定工程S32、第2基準面判定工程S34、および第3基準面判定工程S36の実施順は特に限定されない。
The first reference surface determination step S32, the second reference surface determination step S34, and the third reference surface determination step S36 may all be performed, or the
図9に戻り、本実施形態に係る投影像判定部30は、第1基準面判定部32、第2基準面判定部34、および第3基準面判定部36を備える。第1基準面判定部32は第1基準面判定工程S32を行い、第2基準面判定部34は第2基準面判定工程S34を行い、第3基準面判定部36は第3基準面判定工程S36を行う。第1基準面判定工程S32、第2基準面判定工程S34、および第3基準面判定工程S36については、後に詳しく説明する。
Returning to FIG. 9, the projection
第1基準面判定部32、第2基準面判定部34、および第3基準面判定部36はそれぞれ、第1基準面、第2基準面、および第3基準面において、第1対象物52および第2対象物54の投影像が互いに重なるか否かの判定結果を示す判定データを生成する。
The first reference
立体判定部40は、立体判定工程S40を行う。立体判定部40は、投影像判定部30から、第1基準面、第2基準面、および第3基準面それぞれに関する当該判定データを取得する。そして、立体判定部40は立体判定工程S40を行い、三次元空間において第1対象物52と第2対象物54とが干渉しているか否かを示す判定結果を示すデータを出力する。
The
さらに、判定対象物選択部10が複数の物体50から別の2つの板状の物体50を第1対象物52および第2対象物54として選択し、同様に干渉するか否かの判定が行われてもよい。三次元空間中の全ての板状の物体50について、他の板状の物体50との干渉判定が行われることで、三次元空間内で板状の物体50同士の干渉状態が生じていないかどうかの判定が可能である。なお、二つの物体50の中心間距離が各物体50の外接球の半径rcsの和よりも大きい場合には、当該二つの物体50は干渉しないとして、当該二つの物体50は干渉しないと判定され、その他の組み合わせについて、上記の干渉判定が行われるようにしても良い。
Furthermore, the determination target
<第1基準面判定工程>
第1基準面判定工程S32について以下に説明する。本実施形態に係る第1基準面判定工程S32では、それぞれ第2対象物54の第1基準面における投影像に含まれる、第1投影領域、第2投影領域、および第3投影領域が定義され、各領域と第1対象物52の投影像とが重なるか否かが判定される。以下に詳細を説明する。
<First reference surface determination process>
The first reference surface determination step S32 will be described below. In the first reference plane determination step S32 according to the present embodiment, a first projection area, a second projection area, and a third projection area included in the projection image of the
図12は、第1基準面判定工程S32の内容を示すフローである。
第1基準面判定工程S32は、第1部分判定工程S320、第2部分判定工程S322、および第3部分判定工程S324のうち少なくとも一つを含む。第1部分判定工程S320では、第1基準面において、第1対象物52の投影像と、第2対象物54の投影像のうち第2対象物54の上面の投影部分である第1投影領域とが、重なるか否かが判定される。第2部分判定工程S322では、第1基準面において、第1対象物52の投影像と、第2対象物54の投影像のうち第2対象物54の下面の投影部分である第2投影領域とが、重なるか否かが判定される。第3部分判定工程S324では、第1基準面において、第1対象物52の投影像と、第2対象物54の投影像のうち第1投影領域にも第2投影領域にも含まれない領域の全てを含む第3投影領域とが、重なるか否かが判定される。第1部分判定工程S320、第2部分判定工程S322、および第3部分判定工程S324のうち少なくとも一つにおいて、重なると判定された場合に、第1基準面において、第1対象物52および第2対象物54の投影像が互いに重なると判定される。一方、第1部分判定工程S320、第2部分判定工程S322、および第3部分判定工程S324の全てにおいて、第1対象物52および第2対象物54の投影像が互いに重ならないと判定された場合に、第1基準面において、第1対象物52および第2対象物54の投影像が互いに重ならないと判定される。なお、e1e2e3座標系におけるe3軸正方向を上として、主面のうち、「上面」と「下面」とを区別する。
FIG. 12 is a flow showing the contents of the first reference surface determination step S32.
The first reference surface determination step S32 includes at least one of a first portion determination step S320, a second portion determination step S322, and a third portion determination step S324. In the first part determination step S320, a first projection area that is a projection part of the upper surface of the
なお、第1部分判定工程S320、第2部分判定工程S322、および第3部分判定工程S324は、全て行われても良いし、いずれか一つの工程で各領域と第1対象物52の投影像とが重なると判定された時点で、まだ行われていない他の工程が中止され、第1基準面において第1対象物52および第2対象物54の投影像が互いに重なると判定されてもよい。なお、第1部分判定工程S320、第2部分判定工程S322、および第3部分判定工程S324の実施順は特に限定されない。
The first part determination step S320, the second part determination step S322, and the third part determination step S324 may all be performed, or the projected image of each region and the
第1部分判定工程S320について、以下に説明する。
図13(a)は、第1基準面における第1対象物52の投影像と、第2対象物54の投影像の例を示す模式図である。本図中、円520は、第1基準面における第1対象物52の投影像の輪郭を示す円である。楕円540は、第2対象物54の上面部分が投影された領域の輪郭を示す楕円である。第1部分判定工程S320では、第1基準面において、第1対象物52の投影像と、第2対象物54の投影像のうち第2対象物54の上面の投影部分である第1投影領域とが、重なるか否かが判定される。第1投影領域は、本図中、楕円540を輪郭とする領域である。
The first part determination step S320 will be described below.
FIG. 13A is a schematic view showing an example of the projection image of the
図13(b)は、第1部分判定工程S320について説明するための模式図である。第1対象物52の投影像と、第1投影領域とが重なるか否かを判定するために、円520と同一形状の円521を、楕円540に外接させて転がさずに動かしたとき、円521の中心が描く楕円542を輪郭とする領域が定義される。その上で、第1対象物52の投影像である円520の中心が、楕円542を輪郭とする領域内にあるか否かに基づいて、第1対象物52の投影像と、第1投影領域とが重なるか否かが判定される。具体的には、第1対象物52の投影像の中心が、楕円542を輪郭とする領域内にある場合、第1対象物52の投影像と第1投影領域とが重なると判定され、第1対象物52の投影像の中心が、楕円542を輪郭とする領域内にない場合、第1対象物52の投影像と第1投影領域とが重ならないと判定される。
FIG. 13B is a schematic view for explaining the first part determination step S320. When the
上記に説明した検討は、判定の度に行う必要は無く、本実施形態において第1部分判定工程S320は、以下の式(11)を用いて行うことができる。すなわち、式(11)が成り立たない場合に、第1対象物52の投影像と、第1投影領域とが、重ならないと判定される。
The examination described above does not have to be performed each time of determination, and in the present embodiment, the first part determination step S320 can be performed using the following equation (11). That is, when Expression (11) does not hold, it is determined that the projection image of the
次に、第2部分判定工程S322について、以下に説明する。
図13(a)中、楕円541は、第2対象物54の下面部分が投影された領域の輪郭を示す楕円である。第2部分判定工程S322では、第1基準面において、第1対象物52の投影像と、第2対象物54の投影像のうち第2対象物54の下面の投影部分である第2投影領域とが、重なるか否かが判定される。第2投影領域は、本図中、楕円541を輪郭とする領域である。
Next, the second part determination step S322 will be described below.
In FIG. 13A, an
第2部分判定工程S322でも、第1部分判定工程S320と同様に、円520と同一形状の円521を、楕円541に外接させて転がさずに動かしたとき、円521の中心が描く楕円を輪郭とする領域が定義される。その上で、第1対象物52の投影像である円520の中心が、当該楕円を輪郭とする領域内にあるか否かに基づいて、第1対象物52の投影像と、第2投影領域とが重なるか否かが判定される。具体的には、第1対象物52の投影像の中心が、当該楕円を輪郭とする領域内にある場合、第1対象物52の投影像と第2投影領域とが重なると判定され、第1対象物52の投影像の中心が、当該楕円を輪郭とする領域内にない場合、第1対象物52の投影像と第2投影領域とが重ならないと判定される。
Also in the second part determination step S322, similarly to the first part determination step S320, an ellipse drawn by the center of the
上記に説明した検討は、判定の度に行う必要は無く、本実施形態に係る第2部分判定工程S322は、以下の式(12)を用いて行うことができる。すなわち、式(12)が成り立たない場合に、第1対象物52の投影像と、第2投影領域とが、重ならないと判定される。
The examination described above does not have to be performed each time the determination is made, and the second part determination step S322 according to the present embodiment can be performed using the following equation (12). That is, when Expression (12) does not hold, it is determined that the projection image of the
次に、第3部分判定工程S324について、以下に説明する。
図14(a)は、第1基準面における第1対象物52の投影像と、第2対象物54の投影像とを示す模式図であり、図13(a)に相当する。図14(a)中、破線で囲んだ領域543中には、第2対象物54の投影像の一部の領域であって、第1投影領域にも第2の投影領域にも含まれない領域が存在する。そのため、当該領域と、第1対象物52の投影像とが重ならないか否かを判定する必要がある。ここで、第1基準面において、第1対象物52の投影像と、第2対象物54の投影像のうち第1投影領域にも第2投影領域にも含まれない領域の全てを含む第3投影領域を定義し、第1対象物52の投影像と、第3投影領域とが重ならない場合に、第1対象物52の投影像と、第2対象物54の投影像のうち第1投影領域にも第2投影領域にも含まれない領域とが重ならないと確かめることができる。
Next, the third part determination step S324 will be described below.
FIG. 14 (a) is a schematic view showing a projection image of the
図14(b)は、本実施形態に係る第3領域を示す図である。本図中、楕円544は、第2部分判定工程S322で説明した、円520と同一形状の円521を楕円541に外接させて転がさずに動かしたとき、円521の中心が描く楕円である。また、本図中、領域545が第3領域に相当する。領域545は、楕円542の長軸および楕円544の長軸を対向2辺とする長方形を輪郭とする領域である。このように、単純な形状の第3領域を定義することにより、第1投影領域にも第2投影領域にも含まれない領域と、第1対象物52の投影像とが重ならないことを少ない計算量で確認することができる。
FIG. 14 (b) is a diagram showing a third area according to the present embodiment. In the figure, an
第3部分判定工程S324では、第1対象物52の投影像が第3領域である領域545と重なるか否かが判定される。判定は、領域545の4つの頂点座標と、第1対象物52の投影像の中心との関係に基づいて行われる。
In the third part determination step S324, it is determined whether or not the projection image of the
上記に説明した検討は、判定の度に行う必要は無く、本実施形態に係る第3部分判定工程S324は、以下の式(13)および式(14)を用いて行うことができる。すなわち、式(13)および式(14)の少なくとも一方が成り立たない場合に、第1対象物52の投影像と、第3投影領域とが、重ならないと判定される。なお、式(13)および(14)が成り立つか否かについて順に判定が行われ、一方が成り立たないと判定された時点で、第1対象物52の投影像と第3投影領域とが重ならないと判定され、まだ行われていない他方の判定が中止されてもよい。なお、両数式について、判定を行う順序は特に限定されない。
The examination described above does not have to be performed each time of determination, and the third part determination step S324 according to the present embodiment can be performed using the following equations (13) and (14). That is, when at least one of Expression (13) and Expression (14) does not hold, it is determined that the projection image of the
なお、第1基準面判定工程S32での判定方法は上記の方法に限定されない。第1対象物52および第2対象物54の投影像の少なくとも一部分同士が重なっているか否かを判定できればよい。また、本実施形態では、第1基準面判定工程S32において、第1投影領域、第2投影領域、および第3投影領域について判定を行う例を説明したが、この様な方法に限定されない。第1対象物52の投影像および第2対象物54の投影像をそれぞれ任意に分割等して定義した領域に基づき、第1対象物52および第2対象物54の投影像が互いに重なるか否かを判定しても良い。または、各投影像に基づいて定義した判定領域や、判定点等の互いの関係に基づき、第1対象物52および第2対象物54の投影像が互いに重なるか否かを判定しても良い。
The determination method in the first reference surface determination step S32 is not limited to the above method. It may be determined whether or not at least parts of the projected images of the
<第2基準面判定工程>
第2基準面判定工程S34について以下に説明する。
図15(a)は、第2基準面における第1対象物52の投影像と、第2対象物54の投影像の例を示す模式図であり、図15(b)は、第1判定領域を示す図である。
本実施形態に係る第2基準面判定工程S34では、第2基準面において、第1対象物52の投影像および第2対象物54の投影像を用いて定められる第1判定領域と、第2対象物54の投影像を用いて定められる判定対象線とが重なるか否かが判定されることにより、e2軸とe3軸とからなる第2基準面において、第1対象物52および第2対象物54の投影像が互いに重なるか否かが判定される。以下に詳細を説明する。
<Second reference surface determination process>
The second reference surface determination step S34 will be described below.
Fig.15 (a) is a schematic diagram which shows the example of the projection image of the
In the second reference surface determination step S34 according to the present embodiment, a first determination region defined using the projection image of the
図15(a)中、四角形522は、第2基準面における第1対象物52の投影像の輪郭を示す四角形である。楕円546は、第2対象物54の上面部分が投影された領域の輪郭を示す楕円である。楕円547は、第2対象物54の下面部分が投影された領域の輪郭を示す楕円である。第2基準面判定工程S34では、第2基準面において、第1対象物52の投影像および第2対象物54の投影像を用いて定められる第1判定領域内と、第2対象物54の判定対象線が重なるか否かが判定される。
In FIG. 15A, a
第1判定領域とは、第2対象物54の投影像のうち第2対象物54の上面の投影部分と同一形状の楕円を、第1対象物52の投影像に外接させて転がさずに動かしたとき、当該楕円の中心が描く線を輪郭とする領域である。図15(b)中、図形523が、当該輪郭に相当する。なお、第2対象物54の上面の投影部分の形状と、下面の投影部分の形状とは同一である。
In the first determination area, an ellipse having the same shape as the projection portion of the upper surface of the
図16(a)および(b)は、判定対象線82および判定対象点80を示す図である。判定対象線82は図16(a)および(b)において点線で示されている。第2対象物54の投影像は、上面の投影部分(楕円546)と下面の投影部分(楕円547)の間を、上下面と同一形状の楕円548を平行移動させてなる領域ととらえることができる。平行移動中の全ての位置で、楕円548が第1対象物52の投影像と重ならない場合、第1対象物52および第2対象物54の投影像が互いに重ならないと判定できる。ここで、平行移動中の各位置における楕円548の中心点が、上述した第1判定領域内に無い場合、楕円548は第1対象物52の投影像と重ならないと判定される。判定対象線82は、平行移動中の全ての楕円548の中心点からなる線分である。すなわち、判定対象線82は、第2基準面における第2対象物54の投影像のうち、第2対象物54の下面の中心の投影点に相当する下面中心投影点840と、第2対象物54の上面の中心の投影点に相当する上面中心投影点820とを結ぶ線分である。
FIGS. 16A and 16B are diagrams showing the
第2基準面判定工程S34では、判定対象線82上の少なくとも一点が第1判定領域内に含まれる場合に、第2基準面において、第1対象物52および第2対象物54の投影像が互いに重なると判定される。一方、判定対象線82上のいずれの点も第1判定領域内に含まれない場合に、第2基準面において、第1対象物52および第2対象物54の投影像が互いに重ならないと判定される。
In the second reference surface determination step S34, when at least one point on the
ここで、必ずしも判定対象線82上の全ての点について、第1判定領域内にあるか否かを判定する必要は無い。たとえば、図16(a)のように、判定対象線82の長さLが、第1対象物52の厚みlpより小さい場合、上面中心投影点820と下面中心投影点840の2点のみを判定対象点80として第1判定領域内にあるか否かを判定すれば、判定対象線82と第1判定領域とが重なるか否かを判定できる。上面中心投影点820と下面中心投影点840のいずれもが第1判定領域内に無い場合、その間の線分が第1判定領域と重なることはない。よって、第2基準面において、第1対象物52および第2対象物54の投影像が互いに重ならないと判定できる。
Here, it is not necessary to determine whether or not all the points on the
一方、図16(b)のように、長さLが、第1対象物52の厚みlp以上である場合、上面中心投影点820と下面中心投影点840のいずれもが第1判定領域内に無い場合でも、判定対象線82上の他の点が第1判定領域に重なる場合が生じ得る。そのため、上面中心投影点820と下面中心投影点840の間にさらに判定対象点80を設ける。ここで、全ての隣接する2つの判定対象点80間において、間隔Lsが厚みlpより小さくなるようにする。ただし、計算量を低減するため、判定対象点80の数は間隔Lsが厚みlpより小さくなる条件の下で最も少ないことが好ましい。この様に選択した全ての判定対象点80が第1判定領域内に無い場合、第2基準面において、第1対象物52および第2対象物54の投影像が互いに重ならないと判定できる。
On the other hand, as shown in FIG. 16B, when the length L is equal to or more than the thickness l p of the
纏めると、第2基準面における第2対象物54の投影像のうち、下面中心投影点840と、上面中心投影点820とを結ぶ線分上にある複数の点が、複数の判定対象点80として選択される。そして、複数の判定対象点80は、少なくとも上面中心投影点820および下面中心投影点840を含み、互いに隣接する判定対象点80間の距離Lsは第1対象物52の厚みlpよりも小さい。そして、いずれの判定対象点80も第1判定領域内に無い場合、第2基準面において、第1対象物52および第2対象物54の投影像が互いに重ならないと判定できる。一方、複数の判定対象点80の少なくとも一つが第1判定領域内にある場合、第2基準面において、第1対象物52および第2対象物54の投影像が互いに重なると判定できる。
In summary, among the projected images of the
なお、複数の判定対象点80について順に判定を行い、いずれか一つの判定対象点80が第1判定領域内にあると判定された時点で、第2基準面において、第1対象物52および第2対象物54の投影像が互いに重なると判定され、まだ行われていない判定対象点80の判定が中止されてもよい。なお、複数の判定対象点80について、判定を行う順序は特に限定されない。
In addition, when the determination is sequentially performed on a plurality of determination target points 80 and it is determined that any one
各判定対象点80が、第1判定領域内にあるか否かを判定する方法について、以下に説明する。
A method of determining whether each
図17は、第1判定領域内に含まれる3つの領域を示す模式図である。図17(a)から(c)は、それぞれ図15(b)に対応する図である。本実施形態に係る第2基準面判定工程S34では、それぞれ第1判定領域に含まれる判定領域A、判定領域B、判定領域Cが定義され、判定対象点80が第1判定領域内にあるか否かが判定される。図17(a)は、判定領域Aを示す図、図17(b)は、判定領域Bを示す図、図17(c)は、判定領域Cを示す図である。
FIG. 17 is a schematic view showing three areas included in the first determination area. FIGS. 17A to 17C respectively correspond to FIG. 15B. In the second reference surface determination step S34 according to the present embodiment, whether the determination area A, the determination area B, and the determination area C included in the first determination area are defined and the
判定領域Aは、図17(a)のように、第2対象物54の投影像のうち第2対象物54の上面の投影部分と同一形状の4つの楕円549からなる領域である。ここで、4つの楕円549は、四角形522の4つの頂点をそれぞれ中心とする。判定対象点80がいずれかの楕円549の内部にある場合、判定対象点80が判定領域A内にあると判定される。
The determination area A is an area formed of four
判定領域Bは、図17(b)のように、第1判定領域内に含まれる領域であって、楕円549の長軸を含みe2軸方向に伸びる2つの直線で第1判定領域を区切ってなる領域のうち、原点を含む領域526である。
Determination area B, as in FIG. 17 (b), a region included in the first determination area, separated first determination area by two straight lines extending in e 2 axially contains a long axis of the
判定領域Cは、図17(c)のように、第1判定領域内に含まれる領域であって、楕円549の短軸を含みe3軸方向に伸びる2つの直線で第1判定領域を区切ってなる領域のうち、原点を含む領域527である。
The determination area C is an area included in the first determination area as shown in FIG. 17C, and the first determination area is divided by two straight lines including the minor axis of the
第2基準面判定工程S34では、判定対象点80が判定領域A、判定領域B、および判定領域Cのいずれの領域内にも含まれない場合、当該判定対象点80が第1判定領域内にないと判定される。
In the second reference surface determination step S34, when the
なお、判定領域A、判定領域B、および判定領域Cに判定対象点80が含まれるか否かの判定は、全て行われても良いし、いずれか一つの領域に判定対象点80が含まれると判定された時点で、まだ行われていない他の領域に関する判定が中止され、判定対象点80が第1判定領域内にあると判定されてもよい。なお、定領域A、判定領域B、および判定領域Cについての判定の順は特に限定されない。
It should be noted that the determination whether the
図18は、一つの判定対象点80が第1判定領域内にあるか否かを判定する工程のフローである。上記に説明した検討は、判定の度に行う必要は無く、本実施形態に係る第2基準面判定工程S34は、以下の式(15)から式(22)を用いて行うことができる。ここで、複数の判定対象点80の第2基準面における座標をそれぞれ(e2n,e3n)(n=1,2,・・・)とする。
FIG. 18 is a flow of a process of determining whether one
まず、1つの判定対象点80について、下記の式(15)、式(16)、式(17)、および式(18)のいずれも成立しない場合、当該判定対象点80は、判定領域A内にないと判定される。
First, if none of the following equations (15), (16), (17), and (18) holds for one
また、下記の式(19)および式(20)の少なくとも一方が成立しない場合、当該判定対象点80は、判定領域B内にないと判定される。
When at least one of the following Expression (19) and Expression (20) does not hold, it is determined that the
また、下記の式(21)および式(22)の少なくとも一方が成立しない場合、当該判定対象点80は、判定領域C内にないと判定される。
If at least one of the following equations (21) and (22) does not hold, it is determined that the
なお、N個の判定対象点80の座標(e2n,e3n)(n=1,2,・・,N)は例えばn=1・・・N−1のとき以下の式(23)で表すことができ、n=Nのとき以下の式(24)で表すことができる。ここで、Nは2以上の整数である。 The coordinates (e 2n , e 3n ) (n = 1, 2,..., N) of the N determination target points 80 are, for example, when n = 1. It can be represented by the following equation (24) when n = N. Here, N is an integer of 2 or more.
ここで、(e21,e31)は下面中心投影点840の座標であり、(e2N,e3N)は上面中心投影点820の座標であり、以下の式(25)が成り立つ。
Here, (e 21 , e 31 ) is the coordinates of the lower surface
1つの判定対象点80が、判定領域A、判定領域B、判定領域Cのいずれの領域内にも含まれないと判定された場合、当該判定対象点80は第1判定領域内にないと判定され、全ての判定対象点80が第1判定領域内にないと判定された場合に、第2基準面において、第1対象物52および第2対象物54の投影像が互いに重ならないと判定される。
When it is determined that one
具体的には、式(15)が成立するか否かを判定する工程、式(16)が成立するか否かを判定する工程、式(17)が成立するか否かを判定する工程、式(18)が成立するか否かを判定する工程、式(19)および式(20)のいずれもが成立するか否かを判定する工程、および式(21)および式(22)のいずれもが成立するか否かを判定する工程のうち少なくとも一つが行われる。そして、式(15)が成立するか否かを判定する工程において成立すると判定された場合、式(16)が成立するか否かを判定する工程において成立すると判定された場合、式(17)が成立するか否かを判定する工程において成立すると判定された場合、式(18)が成立するか否かを判定する工程において成立すると判定された場合、式(19)および式(20)のいずれもが成立するか否かを判定する工程でいずれもが成立すると判定された場合、または式(21)および式(22)のいずれもが成立するか否かを判定する工程でいずれもが成立すると判定された場合に、判定対象点80が第1判定領域内にあると判定できる。
Specifically, a step of determining whether equation (15) holds, a step of determining whether equation (16) holds, a step of determining whether equation (17) holds, A step of determining whether or not equation (18) holds, a step of determining whether or not both of equations (19) and (20) hold, and any of equations (21) and (22) At least one of the steps of determining whether the condition holds true is performed. Then, if it is determined in the step of determining whether or not equation (15) is established, if it is determined in the step of determining whether or not equation (16) is established, then equation (17) If it is determined in the step of determining whether or not is established, if it is determined in the step of determining whether or not the equation (18) is established, expression (19) and equation (20) are satisfied. If it is determined in the step of determining whether or not all of them are established, or if it is determined in the step of determining whether or not both of the expressions (21) and (22) are established. If it is determined that the condition is satisfied, it can be determined that the
もしくは、式(15)が成立するか否かを判定する工程、式(16)が成立するか否かを判定する工程、式(17)が成立するか否かを判定する工程、式(18)が成立するか否かを判定する工程、式(19)および式(20)のいずれもが成立するか否かを判定する工程、および式(21)および式(22)のいずれもが成立するか否かを判定する工程の全てが行われる。そして、式(15)が成立するか否かを判定する工程において成立しないと判定され、かつ、式(16)が成立するか否かを判定する工程において成立しないと判定され、かつ、式(17)が成立するか否かを判定する工程において成立しないと判定され、かつ、式(18)が成立するか否かを判定する工程において成立しないと判定され、かつ、式(19)および式(20)のいずれもが成立するか否かを判定する工程で少なくとも一方が成立しないと判定され、かつ、式(21)および式(22)のいずれもが成立するか否かを判定する工程で少なくとも一方が成立しないと判定された場合に、判定対象点80が第1判定領域内にないと判定できる。
Alternatively, the step of determining whether the equation (15) holds, the step of determining whether the equation (16) holds, the step of determining whether the equation (17) holds, the equation (18) (19) and (20), and both of the equations (21) and (22) hold. All of the steps of determining whether to do so are performed. Then, it is determined not to be established in the step of determining whether or not the equation (15) is established, and determined not to be established in the step of determining whether or not the equation (16) is established. 17) is determined in the step of determining whether or not to be established, and is determined in the step of determining whether or not the expression (18) is established, and the expressions (19) and In the step of determining whether or not all of (20) is established, it is determined that at least one is not established, and it is determined whether or not both of the equation (21) and the equation (22) are established. If it is determined that at least one is not established, it can be determined that the
式(15)が成立するか否かを判定する工程、式(16)が成立するか否かを判定する工程、式(17)が成立するか否かを判定する工程、式(18)が成立するか否かを判定する工程、式(19)および式(20)のいずれもが成立するか否かを判定する工程、および式(21)および式(22)のいずれもが成立するか否かを判定する工程を順に行い、式(15)が成立すると判定された場合、式(16)が成立すると判定された場合、式(17)が成立すると判定された場合、式(18)が成立すると判定された場合、式(19)および式(20)のいずれもが成立すると判定された場合、または式(21)および式(22)のいずれもが成立すると判定された場合に、判定対象点80が第1判定領域内にあると判定されて、まだ行われていない残りの工程が中止されても良い。なお、判定の実施順は特に限定されない。
A step of determining whether the equation (15) is established, a step of determining whether the equation (16) is established, a step of determining whether the equation (17) is established, the equation (18) A step of judging whether or not to hold, a step of judging whether or not both of the expressions (19) and (20) hold, and whether or not any of the expressions (21) and (22) hold If it is determined that equation (15) holds, if it is determined that equation (16) holds, if it is determined that equation (17) holds, equation (18) If it is determined that the equation (19) and the equation (20) are both established, or if it is determined that both the equation (21) and the equation (22) are established. It is determined that the
なお、第2基準面判定工程S34での判定方法は上記の方法に限定されない。第1対象物52および第2対象物54の投影像の少なくとも一部分同士が重なっているか否かを判定できればよい。また、本実施形態では、第2基準面判定工程S34において、第1判定領域から定義した判定領域A、判定領域B、および判定領域Cについて判定を行う例を説明したが、この様な方法に限定されない。たとえば、第1判定領域をそれぞれ他の方式で分割等して定義した領域に基づき、第1対象物52および第2対象物54の投影像が互いに重なるか否かを判定してもよい。または、第1判定領域とは異なる判定領域と、判定点等との関係に基づき、第1対象物52および第2対象物54の投影像が互いに重なるか否かを判定しても良い。
The determination method in the second reference surface determination step S34 is not limited to the above method. It may be determined whether or not at least parts of the projected images of the
<第3基準面判定工程>
第3基準面判定工程S36について以下に説明する。本実施形態に係る第1基準面判定工程S32では、e3軸とe1軸とからなる第3基準面において、第1対象物52および第2対象物54の投影像が互いに重なるか否かが判定される。
<Third reference surface determination process>
The third reference surface determination step S36 will be described below. In the first reference surface determination step S32 according to the present embodiment, whether or not the projection images of the
本実施形態に係る第3基準面判定工程S36では、第3基準面において、第1対象物52の投影像および第2対象物54の投影像を用いて定められる第2判定領域内に、第2対象物54の投影像の中心点が含まれるか否かが判定される。そして、当該中心点が第2判定領域内に含まれない場合に、第3基準面において、第1対象物52および第2対象物54の投影像が互いに重ならないと判定される。一方、当該中心点が第2判定領域内に含まれる場合に、第3基準面において、第1対象物52および第2対象物54の投影像が互いに重なると判定される。
In the third reference surface determination step S36 according to the present embodiment, in the third reference surface, within the second determination region defined using the projection image of the
図19(a)は、第3基準面における第1対象物52の投影像と、第2対象物54の投影像の例を示す模式図であり、図19(b)は、第2判定領域を示す図であり、図19(c)は、第2判定領域と分割領域の関係を示す図である。
FIG. 19A is a schematic view showing an example of the projection image of the
図19(a)中、四角形524は、第3基準面における第1対象物52の投影像の輪郭を示す四角形である。四角形550は、第3基準面における第2対象物54の投影像の輪郭を示す四角形である。
In FIG. 19A, a
第2判定領域とは、第2対象物54の投影像と同一形状の四角形551を、第1対象物52の投影像に外接させて転がさずに動かしたとき、四角形551の中心が描く線を輪郭とする領域である。図19(b)中、八角形525が、当該輪郭に相当する。なお、四角形の中心とは、四角形の対角線の交点である。第2判定領域内に、第2対象物54の投影像の中心点が含まれない場合に、第3基準面において、第1対象物52および第2対象物54の投影像が互いに重ならないと判定される。
The second judgment area is drawn by the center of the
第2対象物54の中心点が、第2判定領域内にあるか否かを判定する方法について、以下に説明する。
A method of determining whether the center point of the
第3基準面判定工程S36では、第2判定領域が、当該領域の輪郭の隣接する2つの頂点と、第3基準面の原点とを結ぶ三角形からなる複数の分割領域に分割される。そして、複数の分割領域のそれぞれに、第2対象物54の投影像の中心点が含まれるか否かが判定され、いずれの分割領域にも当該中心点が含まれない場合に、当該中心点が第2判定領域内にないと判定される。
In the third reference surface determination step S36, the second determination region is divided into a plurality of divided regions each consisting of a triangle connecting the two adjacent vertices of the contour of the region and the origin of the third reference surface. Then, it is determined whether or not the center point of the projection image of the
または、複数の分割領域のうち少なくとも一つについて、第2対象物54の投影像の中心点が含まれるか否かが判定され、複数の分割領域の少なくとも一つに当該中心点が含まれる場合に、当該中心点が第2判定領域内にあると判定される。
Alternatively, it is determined whether or not the center point of the projected image of the
複数の分割領域のそれぞれについて、順に第2対象物54の投影像の中心点が含まれるか否かが判定され、いずれか一つにおいて、含まれるとの判定がされた時点でまだ行われていない残りの分割領域についての判定が中止されても良い。なお、判定の順序は特に限定されない。
Whether or not the center point of the projected image of the
図19(c)は、第2判定領域と分割領域の関係を示す図である。八角形525の各頂点を、順にA1〜A8とし、隣り合う2頂点と原点とを結ぶ三角形OAiAj((i,j)=(1,2),(2,3),(3,4),(4,5),(5,6),(6,7),(7,8),(8,1))を分割領域とする。第2判定領域を分割してなる複数の分割領域は、具体的には三角形OA1A2、三角形OA2A3、三角形OA3A4、三角形OA4A5、三角形OA5A6、三角形OA6A7、三角形OA7A8、および三角形OA8A1である。
FIG. 19C shows the relationship between the second determination area and the divided areas. Each vertex of the
図20は、三角形OAiAjと、第2対象物54の投影像の中心点Pの位置関係の例を示す図である。点Pが三角形OAiAj内にある場合、以下の式(26)〜式(29)が成り立つ。
FIG. 20 is a diagram showing an example of the positional relationship between the triangle OA i A j and the central point P of the projected image of the
またここで、第2対象物54の投影像の中心点Pは(e1,e3)=(a,c)で表され、Ai=(e1i,e3i)およびAj=(e1j,e3j)としたとき、式(26)に基づいて、αおよびβはそれぞれ以下の式(30)および式(31)で表される。
Here, the central point P of the projected image of the
上記に説明した検討は、判定の度に行う必要は無く、本実施形態に係る第3基準面判定工程S36では、それぞれ式(30)および式(31)で表されるαおよびβについて、式(27)、式(28)、および式(29)の少なくともひとつが成り立たない場合に、各分割領域である三角形OAiAj内に第2対象物54の投影像の中心点が含まれないと判定される。一方、式(27)、式(28)、および式(29)の全てが成り立つ場合に、各分割領域である三角形OAiAj内に第2対象物54の投影像の中心点が含まれると判定される。
The examination described above does not have to be performed every time of determination, and in the third reference surface determination step S36 according to the present embodiment, equations α and β represented by
なお、式(27)、式(28)、および式(29)が成り立つか否かの判定を順に行い、いずれか一つが成り立たないと判定された時点で、その分割領域内に第2対象物54の投影像の中心が含まれないと判定され、まだ行っていない判定が中止されてもよい。なお、式(27)、式(28)、および式(29)が成り立つか否かの判定を行う順は特に限定されない。 It is to be noted that it is sequentially judged whether or not the equations (27), (28) and (29) hold, and when it is judged that one does not hold, the second object is It may be determined that the center of the 54 projected images is not included, and the determination that has not been made may be canceled. In addition, the order which determines whether Formula (27), Formula (28), and Formula (29) is formed is not specifically limited.
ここで、Ai=(e1i,e3i)およびAj=(e1j,e3j)とし、第2判定領域の頂点Am=(e1m,e3m)(m=1〜8)はそれぞれ下記の式(32)から式(39)で表される。 Here, A i = (e 1i , e 3i ) and A j = (e 1j , e 3j ), and the vertex A m = (e 1m , e 3m ) (m = 1 to 8) of the second determination area is Respectively, they are expressed by the following formulas (32) to (39).
なお、第3基準面判定工程S36での判定方法は上記の方法に限定されない。第1対象物52および第2対象物54の投影像の少なくとも一部分同士が重なっているか否かを判定できればよい。本実施形態では、第3基準面判定工程S36において、第2判定領域を複数の三角形の分割領域に分割し、判定を行う例を説明したが、この様な方法に限定されない。たとえば、第2判定領域を他の方式で分割等して定義した領域に基づき、第1対象物52および第2対象物54の投影像が互いに重なるか否かを判定してもよい。または、第2判定領域とは異なる判定領域と判定点等との関係に基づき、第1対象物52および第2対象物54の投影像が互いに重なるか否かを判定しても良い。
The determination method in the third reference surface determination step S36 is not limited to the above method. It may be determined whether or not at least parts of the projected images of the
なお、本実施形態において、第1対象物52と第2対象物54とが「干渉していない」と判定されなかった場合、たとえば、第1対象物52と第2対象物54とが「干渉している」と判定されてもよい。本実施形態に係る移動干渉判定工程S70において、「干渉していない」と判定された場合には、三次元空間において第1対象物52と第2対象物54とは干渉していないといえる。一方、上記の様に「干渉している」と判定された場合であっても、実際には干渉している場合と、干渉していない場合とが含まれる。しかしながら、シミュレーションにおいては、「干渉している」と判定された状態を禁止すれば、第1対象物52と第2対象物54とが干渉している状態を避けられるため、有益である。また、「干渉している」と判定されたにもかかわらず、実際には干渉していないという場合が生じる頻度は十分に稀であり、実用上の問題は無い。また、上述した様な外接球の半径と距離のみに基づく判定方法に比べて、「干渉している」と判定されたにもかかわらず、実際には干渉していないという場合の割合は、格段に小さく、より正確な判定方法であると言える。
In the present embodiment, when it is not determined that the
また、座標定義工程S20で定義される座標が直交座標であることにより、「干渉している」と判定されたにもかかわらず実際には干渉していないという場合が生じる頻度をより低減させることができる。よって、より正確な判定が可能である。 In addition, since the coordinates defined in the coordinate definition step S20 are orthogonal coordinates, it is possible to further reduce the frequency of occurrence of the case where interference does not actually occur although it is determined to be "interfering". Can. Therefore, more accurate determination is possible.
本実施形態に係る移動干渉判定工程S70によれば、三次元空間における複数の板状の対象物が、干渉するか否かを判定することができる。 According to the movement interference determination step S70 according to the present embodiment, it can be determined whether a plurality of plate-like objects in the three-dimensional space interfere with each other.
また、各判定工程が、簡単な数式の関係を満たすか否かによって行われるため、少ない計算量で、判定可能である。 In addition, since each determination step is performed based on whether or not the relationship of a simple mathematical expression is satisfied, determination can be made with a small amount of calculation.
また、物体の形状および向きを加味して判定されるため、より正確な干渉判定が可能である。 Further, since the determination is made in consideration of the shape and the direction of the object, more accurate interference determination is possible.
[板状の物体と球状の物体との干渉判定]
図21は、本実施形態に係る板状の物体57と球状の物体58との配置の一例を示す図である。複数の物体50が板状の物体57と球状の物体58とを少なくとも1つずつ含み、移動干渉判定部70が板状の物体50と球状の物体50とが干渉するか否かを判定する方法について以下に詳細を述べる。
[Detection of interference between plate-like object and spherical object]
FIG. 21 is a view showing an example of the arrangement of the plate-
図21(a)は、板状の物体57と球状の物体58との配置関係の例を示す斜視図である。図21(b)は、板状の物体57の上面の中心、板状の物体57の下面の中心、および球状の物体58の中心を含む平面における断面図である。本図中、点Odは板状の物体57の中心を示し、点Osは、球状の物体58の中心を示し、Ndは板状の物体57の法線ベクトルを示している。また、点Odと点Osとの距離をddsとし、点Odと点Osとを結ぶ直線と法線ベクトルNdとのなす角をφdsとし、球状の物体58の半径をrsとし、板状の物体57の主面の半径をrdとし、板状の物体57の厚みをldとする。
FIG. 21A is a perspective view showing an example of the arrangement relationship between a plate-
板状の物体57と球状の物体58とが、図21(b)で示す平面において重なる場合、三次元空間において板状の物体57と球状の物体58とが干渉していると言え、当該平面において重ならない場合、三次元空間において干渉しないと言える。したがって、当該平面において板状の物体57の断面である四角形571と球状の物体58の断面である円581とが重なるか否かの判定方法について以下に説明する。
When the plate-
図22は、板状の物体の断面と球状の物体の断面とが重なるか否かの判定方法について説明するための図である。当該平面において、四角形571と円581とが重なる場合には、図22(a)で示すような場合と、図22(b)で示すような場合と、図22(c)で示すような場合とがあり、これらの図22(a)〜(c)で示す場合のうち少なくとも一つに当てはまれば、円581と四角形571とが重なっており、すなわち板状の物体57と球状の物体58とが干渉していると言える。図22(a)で示す場合、四角形572の内側に円581の中心が入る場合である。図22(b)で示す場合は、四角形573の内側に円581の中心が入る場合である。図22(c)で示す場合は、四角形571の頂点が円581の内側に入る場合である。
FIG. 22 is a diagram for describing a method of determining whether the cross section of a plate-like object and the cross section of a spherical object overlap. In the case where the
図22(a)で示すように、四角形572の内側に円581の中心が入る場合について説明する。四角形572は、板状の物体57の厚み方向の辺の長さをld+2×rsとし、それに直交する方向の辺の長さを2×rdとする四角形である。四角形572の中心と、四角形571の中心とは一致している。以下の式(40)および式(41)をいずれも満たすとき円581の中心が、四角形572の内側に入る。
As shown in FIG. 22A, the case where the center of the
図22(b)で示すように、四角形573の内側に円581の中心が入る場合について説明する。四角形573は、板状の物体57の厚み方向の辺の長さをldとし、それに直交する方向の辺の長さを2×(rd+rs)とする四角形である。四角形573の中心と、四角形571の中心とは一致している。以下の式(42)および式(43)をいずれも満たすとき円581の中心が、四角形573の内側に入る。
A case where the center of the
図22(c)で示すように、四角形571の頂点が円581の内側に入る場合について説明する。この場合、円581の中心と四角形571の頂点との距離がrs以下になる。以下の式(44)を満たすとき四角形571の頂点が円581の内側に入る。
As shown in FIG. 22C, the case where the vertex of the
移動干渉判定部70は、仮移動後状態データにおける複数の物体50から、板状の物体57および球状の物体58を任意に選択し、上記の様に板状の物体57と球状の物体58とが干渉しているか否かを判定する。
The movement
なお、上記の各数式において用いられている「≦」は「<」に置き換えてもよい。浮動小数点数を用いた演算を行った場合、演算誤差が生じる。そのため、コンピュータを用いた判定において、等号が成り立つことは殆ど無いといってよく、等号の有り無しで判定結果が同様となる。 In addition, "<" used in each said numerical formula may be substituted by "<". If an operation using a floating point number is performed, an operation error occurs. Therefore, in the determination using a computer, it may be said that the equal sign hardly holds, and the determination result becomes the same with and without the equal sign.
なお、上記の各数式は、本実施形態で示した形に限定されず、それぞれ変形して用いることができる。 In addition, each said numerical formula is not limited to the form shown by this embodiment, It can each deform | transform and use.
次に、本実施形態の作用および効果について説明する。本実施形態に係るシミュレーション方法によれば、複数の物体が高い密度で配置された三次元空間のシミュレーションが可能である。 Next, the operation and effects of the present embodiment will be described. According to the simulation method according to the present embodiment, it is possible to simulate a three-dimensional space in which a plurality of objects are arranged at a high density.
また、本実施形態に係るシミュレーション方法によれば、ある程度広い領域においてシャッフルを進め、充填領域を縮小させていくことで、充填領域内に複数の物体がある程度ランダムに配向し、物体の体積充填率が高いモデルを作成することができる。当該シミュレーション方法は、複数の物体が異方的な形状の物体を含む場合に、特に有用である。 Further, according to the simulation method according to the present embodiment, by advancing the shuffling in a wide area to a certain extent and reducing the filling area, a plurality of objects are randomly oriented in the filling area to a certain extent, and the volume filling factor of the objects Can create a high model. The simulation method is particularly useful when the plurality of objects include anisotropically shaped objects.
(第2の実施形態)
図23は、本実施形態に係るシミュレーション方法のフローである。当該シミュレーション方法は、乱雑度判定工程S22および体積判定工程S98を含む点を除き、第1の実施形態に係るシミュレーション方法と同じである。本図において、縮小工程に相当する部分を破線で囲って示している。
Second Embodiment
FIG. 23 is a flow of a simulation method according to the present embodiment. The simulation method is the same as the simulation method according to the first embodiment, except that it includes the randomness determination step S22 and the volume determination step S98. In the drawing, the part corresponding to the reduction process is shown surrounded by a broken line.
図24は、本実施形態に係るシミュレーション装置100の構成を示す図である。本実施形態に係るシミュレーション装置100は、乱雑度判定工程S22を行う乱雑度判定部22、および体積判定工程S98を行う体積判定部98をさらに備える。以下に詳しく説明する。
FIG. 24 is a view showing the configuration of a
乱雑度判定工程S22では、移動後状態データに基づき、三次元空間における、複数の物体50の乱雑度を示す乱雑度データが生成され、乱雑度があらかじめ定めた基準を満たすか否かが判定される。当該シミュレーション方法では、一度の状態変更処理において、物体移動工程S24が繰り返し行われる。乱雑度判定工程S22において、乱雑度が基準を満たさないと判定された場合、物体移動工程S24の繰り返しが続けられ、乱雑度が基準を満たすと判定された場合、その時点で、または、さらに特定の回数の物体移動工程S24が行われた後、物体移動工程S24の繰り返しが終了される。乱雑度判定工程S22が行われることで、任意の乱雑度のシミュレーションモデルを作成することができる。
In the randomness determination step S22, randomness data indicating the randomness of the plurality of
乱雑度判定部22は、乱雑度判定工程S22を行う。乱雑度判定工程S22は物体移動工程S24に次いで行われる。乱雑度判定部22は物体移動部24で生成された移動後状態データを取得する。そして、取得した最新の移動後状態データに基づき、三次元空間において、全ての物体50の配置状態に基づく乱雑度を示す乱雑度データを生成する。そして、上述の通り、乱雑度があらかじめ定めた基準を満たすか否かを判定する。
The randomness
乱雑度が基準を満たさない場合、物体移動工程S24の繰り返しが続けられ、乱雑度が基準を満たす場合、物体移動工程S24の繰り返しが終了される。 If the degree of randomness does not satisfy the criterion, the repetition of the object moving step S24 is continued, and if the degree of randomness satisfies the criterion, the repetition of the object moving step S24 is ended.
なお、乱雑度判定部22は、乱雑度が基準を満たすと判定された場合、その時点で物体移動工程S24の繰り返しを終了させても良いし、さらに特定の回数の物体移動工程S24を行ってから終了させても良い。当該回数は、あらかじめ定められ記憶部26に保持された回数を乱雑度判定部22が読み出して取得しても良いし、ユーザーが、図示しない入力部に任意に入力した値を取得するようにしても良い。
In addition, when it is determined that the randomness satisfies the criterion, the
なお、乱雑度判定工程S22は、必ずしも物体移動工程S24の度に行わなくてもよい。小数の物体50を移動させたのみでは乱雑度は殆ど変化しないため、乱雑度判定工程S22を毎回行わず、数回の物体移動工程S24に対して1回の頻度で行えばよい。そうすることにより、計算量を低減できる。また、複数の物体50を配列した状態から乱雑化を開始した初めのうち等、基準を満たさないことが明らかである場合、乱雑度判定工程S22を省略することができる。初期状態から特定回数の物体移動工程S24が行われた後に、初めて乱雑度判定工程S22を行うようにしても良い。
The degree of randomness determination step S22 may not necessarily be performed each time the object moving step S24. Since the degree of randomness hardly changes only by moving a
なお、乱雑度の基準は、最終的に得たいモデルの乱雑度と常に一致させても良いし、最終的に所望の乱雑度のモデルを得られる様に、繰り返し状態変更処理を行う中で変化させてもよい。 In addition, the criterion of the degree of randomness may be always matched with the degree of randomness of the model to be finally obtained, or changed during the repetitive state change processing so that the model of the desired degree of randomness can be finally obtained. You may
なお、乱雑度判定工程S22は、物体移動工程S24の後、かつ縮小干渉判定工程S94の前に行われれば良く、仮充填領域定義工程S92との前後関係は任意である。また、乱雑度判定工程S22仮充填領域定義工程S92と並行して行われても良い。なお、仮充填領域定義工程S92が先に行われても、乱雑度判定工程S22において、基準を満たすと判定されるまでは、縮小干渉判定工程S94は行われない。 The degree of randomness determination step S22 may be performed after the object moving step S24 and before the reduction interference determination step S94, and the relationship with the temporary filling region definition step S92 is arbitrary. Also, the randomness determination step S22 may be performed in parallel with the temporary filling region definition step S92. Even if the temporary filling region defining step S92 is performed first, the reduction interference determining step S94 is not performed until it is determined that the criterion is satisfied in the randomness determining step S22.
なお、1度の、または、初めの数度の状態変更処理によって、十分に乱雑度が高まった場合等には、その後の乱雑度判定工程S22は省略し、物体移動工程S24と縮小工程のみを行うようにしても良い。 When the degree of randomness is sufficiently increased by one or the first few state change processes, the subsequent randomness determination step S22 is omitted, and only the object moving step S24 and the reduction step are performed. You may do so.
本実施形態において、移動後状態データは移動後の全ての物体50の配置状態を示すデータである。ただし、これに限定されない。上述の様に、移動後状態データは少なくとも移動された物体50の配置状態を含めばよく、移動された物体50のみの配置状態を示す情報であっても良いし、移動された物体50とその周辺のいくつかの物体50の配置状態を示す情報であっても良い。また、移動後状態データは、空間状態データを構成する形状、位置、向き等の要素のうち、全ての要素を含んでもよいし、移動に関連した一部の要素のみから構成されていても良い。これらの例の場合、乱雑度判定部22はたとえば移動後状態データと、記憶部26から別途取得した空間状態データとに基づいて、移動後の全ての物体50の配置状態を示す情報を生成し、乱雑度の算出を行うことができる。もしくは、乱雑度判定部22は、たとえば移動後状態データに基づいて移動に伴う乱雑度の変化量を算出し、移動後の全体の乱雑度を算出しても良い。
In the present embodiment, the post-movement state data is data indicating the arrangement state of all the
乱雑度判定工程S22について以下に詳しく説明する。乱雑度判定部22は、物体移動部24の移動次状態決定部18から、生成された移動後状態データを取得する。なお、移動次状態決定部18が移動後状態データを記憶部26に保持させる様にした場合、乱雑度判定部22は、移動後状態データを移動次状態決定部18から取得する代わりに記憶部26から取得しても良い。
The randomness determination step S22 will be described in detail below. The randomness
ここで、乱雑度はたとえば複数の物体50の法線ベクトルに基づいて求めることができる。たとえば、全ての板状の物体50の法線ベクトルにおける、要素nxiの二乗の平均値nxave、要素nyiの二乗の平均値nyave、および要素nziの二乗の平均値nzaveを算出し、nxave、nyave、およびnzaveのそれぞれが1/3に近いほど、乱雑度が高いといえる。
Here, the degree of randomness can be determined based on, for example, normal vectors of a plurality of
本実施形態において、乱雑度判定部22は、全ての物体50の法線ベクトルに基づき、平均値nxave、平均値nyave、および平均値nzaveを算出する。そして、たとえば各平均値から1/3を引いた値の絶対値のうち、最大の値を乱雑度として求め、乱雑度があらかじめ定めた基準値以下となる場合に、乱雑度が基準を満たすとして物体移動工程S24の繰り返しを終了する。一方、乱雑度があらかじめ定めた基準値を超える場合には、乱雑度が基準を満たさないとして、再度物体移動工程S24を行う。ここで、基準値を小さく定めるほど、乱雑度を高めることとなる。乱雑度の基準値は、乱雑度判定部22が、あらかじめ記憶部26に保持された情報を読み出して取得するようにしても良いし、図示しない入力部に入力された情報を取得するようにしても良い。
In this embodiment, clutter
なお、乱雑度判定部22での乱雑度の定義や基準の定め方は、上記の方法に限定されない。たとえば乱雑度判定部22では、さらに複数の物体50の位置に基づく乱雑度について、判定を行っても良い。位置に基づく乱雑度としては、たとえば物体50の座標値の標準偏差等を用いることができる。
In addition, the definition of the degree of randomness in the degree-of-
本実施形態において、縮小干渉判定部94は、乱雑度判定部22が基準を満たすと判定し、物体移動工程S24の繰り返しが終了した後、乱雑度判定部22から移動後状態データを取得する。そして、第1の実施形態と同様に縮小工程が行われる。
In the present embodiment, the reduction
縮小次状態決定工程S96において、空間状態データが変更された場合、次いで体積判定工程S98が行われる。体積判定工程S98では、充填領域60に対する複数の物体50の体積占有率があらかじめ定められた基準を満たすか否かが判定される。体積判定工程S98において、体積占有率が基準を満たさないと判定された場合、少なくとも縮小工程を再度行い、体積占有率が基準を満たすと判定された場合、その時点で、または、物体移動工程S24と、縮小工程のうち少なくともいずれか一方をさらに特定の回数行った後、状態変更処理の繰り返しが終了される。体積判定工程S98が行われることで、所望の体積の充填領域60を有するシミュレーションモデルを作成することができる。すなわち、充填領域60に対する物体50の体積充填率を所望の値にすることができる。
If the spatial state data is changed in the reduction next state determination step S96, then the volume determination step S98 is performed. In the volume determination step S98, it is determined whether the volume occupancy rate of the plurality of
体積占有率の基準や当該回数等は、あらかじめ定められ記憶部26に保持された回数を体積判定部98が読み出して取得しても良いし、ユーザーが、図示しない入力部に任意に入力した値を取得するようにしても良い。
The
体積判定部98は、体積判定工程S98を行う。体積判定工程S98は、縮小次状態決定工程S96の後に行われる。縮小次状態決定部96から空間状態データを取得する。当該空間状態データはその時点での最新の空間状態データである。すなわち、その状態変更処理において縮小次状態決定部96が空間状態データを変更した場合、体積判定部98が取得する最新の空間状態データは、その状態変更処理において新たな充填領域60内に配置された移動後状態データに基づく複数の物体50の配置状態を示す情報である。なお、縮小次状態決定部96は最新の空間状態データを記憶部26に保持させる様にしても良い。その場合、乱雑度判定部22は、最新の空間状態データを移動次状態決定部18から取得する代わりに記憶部26から取得しても良い。
The
体積判定部98は、最新の空間状態データに基づき、充填領域60の体積を算出する。そして、算出された体積に基づき、体積占有率が、あらかじめ定めた基準を満たすか否かを判定する。体積占有率が基準を満たさないと判定された場合、縮小工程または状態変更処理が再度行われる。図23では再度物体移動工程S24を行う例を示しているが、これに限定されない。たとえば、直前の縮小次状態決定工程S96において、空間状態データが変更された場合に縮小工程のみを再度行い、変更されなかった場合に物体移動工程S24および縮小工程からなる状態変更処理を再度行うようにする。こうして、基準を満たすまで充填領域60の縮小が続けられる。体積占有率が基準を満たすと判定された場合、その時点で状態変更処理の繰り返しが終了される。
The
なお、体積占有率が基準を満たすと判定された場合、物体移動工程S24と、縮小工程のうち少なくともいずれか一方をさらに特定の回数行った後、状態変更処理の繰り返しが終了されるようにしてもよい。当該回数等は、あらかじめ定められ記憶部26に保持された回数を体積判定部98が読み出して取得しても良いし、ユーザーが、図示しない入力部に任意に入力した値を取得するようにしても良い。
If it is determined that the volume occupancy rate satisfies the criterion, after repeating at least one of the object moving step S24 and the reduction step a specific number of times, the repetition of the state change process is ended. It is also good. The
なお、体積判定部98は、最新の空間状態データを取得する代わりに、最新の充填領域60を示す境界データのみを取得して、充填領域60の体積を算出してもよい。
The
充填領域60の体積の基準値は、体積判定部98が、あらかじめ記憶部26に保持された情報を読み出して取得するようにしても良いし、図示しない入力部にユーザーが入力した情報を取得するようにしても良い。
The reference value of the volume of the filling
なお、体積判定工程S98は状態変更処理の度に行っても良いが、上述の様に縮小次状態決定部96が空間状態データを変更した場合にのみ行えばよい。もしくは、数回の状態変更処理に対して1回、あるいは空間状態データが数回変更される度に1回の頻度で体積判定工程S98が行われればよい。そうすることにより、計算量を低減できる。また、初期状態から、充填領域60の縮小を開始した初めのうち等、基準を満たさないことが明らかである場合、体積判定工程S98を省略することができる。初期状態から特定回数、空間状態データの変更が行われた後に、初めて体積判定工程S98を行うようにしても良い。当該回数は、あらかじめ定められ記憶部26に保持された回数を体積判定部98が読み出して取得しても良いし、ユーザーが、図示しない入力部に任意に入力した値を取得するようにしても良い。
Although the volume determination step S98 may be performed each time the state change processing, it may be performed only when the reduction next
なお、本実施形態では、乱雑度判定工程S22および体積判定工程S98を含むシミュレーション方法について説明したが、いずれか一方のみを含んでも良い。 In the present embodiment, the simulation method including the randomness determination step S22 and the volume determination step S98 has been described, but only one of them may be included.
次に、本実施形態の作用および効果について説明する。本実施形態においては第1の実施形態と同様の作用および効果が得られる。加えて、所望の乱雑度、体積占有率を有するモデルを作成することが出来る。 Next, the operation and effects of the present embodiment will be described. In this embodiment, the same operation and effect as the first embodiment can be obtained. In addition, models with desired randomness and volume occupancy can be created.
以上、図面を参照して本発明の実施形態について述べたが、これらは本発明の例示であり、上記以外の様々な構成を採用することもできる。 Although the embodiments of the present invention have been described above with reference to the drawings, these are merely examples of the present invention, and various configurations other than the above can also be adopted.
以下、参考形態の例を付記する。
1.複数の物体が配置された三次元空間のシミュレーション方法であって、
有限の体積を有する充填領域内に配置された前記複数の物体の配置状態を示す空間状態データのうち、前記充填領域を示す情報を取得し、前記充填領域を縮小させた仮充填領域を示す情報を生成する仮充填領域定義工程と、
前記複数の物体の配置状態を示す情報および前記仮充填領域を示す情報に基づき、前記仮充填領域の外の領域、又は前記仮充填領域と当該外の領域との境界と、少なくとも1つの前記物体とが干渉しているか否かの判定を行う縮小干渉判定工程と、
前記縮小干渉判定工程において、当該外の領域又は当該境界と、少なくとも1つの前記物体とが干渉していると判定された場合に、前記空間状態データを変更せず、いずれの前記物体も当該外の領域とも当該境界とも干渉していないと判定された場合に、前記仮充填領域を新たな前記充填領域とし、前記新たな充填領域内に配置された前記複数の物体の配置状態を示す情報を新たな前記空間状態データとする、縮小次状態決定工程とを含む、
シミュレーション方法。
2.1に記載のシミュレーション方法において、
前記空間状態データを取得し、前記複数の物体の内、少なくとも一つを移動させ、移動させた前記物体の配置情報を含む移動後状態データを生成する物体移動工程をさらに含み、
前記縮小干渉判定工程では、前記移動後状態データおよび前記仮充填領域を示す情報に基づき、前記仮充填領域の外の領域、又は前記仮充填領域と当該外の領域との境界と、少なくとも1つの前記物体とが干渉しているか否かの判定を行い、
前記縮小次状態決定工程では、前記縮小干渉判定工程において、当該外の領域又は当該境界と、少なくとも1つの前記物体とが干渉していると判定された場合に、前記空間状態データを変更せず、いずれの前記物体も当該外の領域とも当該境界とも干渉していないと判定された場合に、前記仮充填領域を新たな前記充填領域とし、前記新たな充填領域内に配置された前記移動後状態データに基づく前記複数の物体の配置状態を示す情報を新たな前記空間状態データとし、
前記物体移動工程、前記仮充填領域定義工程、前記縮小干渉判定工程、および前記縮小次状態決定工程を行う状態変更処理を繰り返し行う、
シミュレーション方法。
3.2に記載のシミュレーション方法において、
前記物体移動工程は、
前記複数の物体の内、移動させようとする少なくとも1つの移動対象物を選択する移動対象物選択工程と、
前記移動対象物をどのように移動させるかを示す移動情報を生成する移動情報生成工程と、
前記移動情報に基づき前記移動対象物を移動させた後の、前記三次元空間における少なくとも前記移動対象物の配置状態に関する情報を含む、仮移動後状態データを生成する対象物移動工程と、
前記仮移動後状態データに基づき、前記三次元空間において前記複数の物体が互いに干渉しているか否か、および、前記充填領域の外の領域、又は前記充填領域と当該外の領域との境界と、少なくとも1つの前記物体とが干渉しているか否かを判定する移動干渉判定工程と、
前記移動干渉判定工程において、前記複数の物体が互いに干渉していないと判定され、かつ、いずれの前記物体も当該外の領域とも当該境界とも干渉していないと判定された場合に、前記仮移動後状態データを前記移動後状態データとして生成する、移動次状態決定工程とを含み、
前記複数の物体の少なくとも1つは板状の物体であり、
前記対象物移動工程では、前記移動対象物の平行移動および回転移動のうち少なくとも一方を行う、
シミュレーション方法。
4.3に記載のシミュレーション方法において、
前記複数の物体は、第1の前記板状の物体および第2の前記板状の物体を少なくとも含み、
前記移動干渉判定工程は、
前記複数の物体から、前記第1の板状の物体である第1対象物と、前記第2の板状の物体である第2対象物とを選択する判定対象物選択工程と、
前記第1対象物および前記第2対象物に対し、1つの直交座標系を定義する座標定義工程と、
前記直交座標系の基準面に投影した、前記第1対象物および前記第2対象物の投影像が互いに重なるか否かを判定する投影像判定工程と、
前記三次元空間において前記第1対象物と前記第2対象物とが干渉するか否かを判定する立体判定工程とを含み、
前記直交座標系は、互いに直交するe1軸、e2軸、およびe3軸からなり、
前記投影像判定工程は、
e1軸とe2軸とからなる第1基準面において、前記第1対象物および前記第2対象物の投影像が互いに重なるか否かを判定する第1基準面判定工程、
e2軸とe3軸とからなる第2基準面において、前記第1対象物および前記第2対象物の投影像が互いに重なるか否かを判定する第2基準面判定工程、および
e3軸とe1軸とからなる第3基準面において、前記第1対象物および前記第2対象物の投影像が互いに重なるか否かを判定する第3基準面判定工程のうち少なくとも一つを含み、
前記立体判定工程では、前記投影像判定工程で前記第1基準面、前記第2基準面、および前記第3基準面のうち少なくとも一つにおいて前記第1対象物および前記第2対象物の投影像が互いに重ならないと判定された場合に、前記第1対象物と前記第2対象物とが干渉していない状態であると判定する、
シミュレーション方法。
5.3に記載のシミュレーション方法において、
前記複数の物体は、第1の前記板状の物体および第2の前記板状の物体を少なくとも含み、
前記移動干渉判定工程は、
前記複数の物体から、前記第1の板状の物体である第1対象物と、前記第2の板状の物体である第2対象物とを選択する判定対象物選択工程と、
前記第1対象物および前記第2対象物に対し、1つの直交座標系を定義する座標定義工程と、
前記直交座標系の基準面に投影した、前記第1対象物および前記第2対象物の投影像が互いに重なるか否かを判定する投影像判定工程と、
前記三次元空間において前記第1対象物と前記第2対象物とが干渉するか否かを判定する立体判定工程とを含み、
前記直交座標系は、互いに直交するe1軸、e2軸、およびe3軸からなり、
前記投影像判定工程は、
e1軸とe2軸とからなる第1基準面において、前記第1対象物および前記第2対象物の投影像が互いに重なるか否かを判定する第1基準面判定工程、
e2軸とe3軸とからなる第2基準面において、前記第1対象物および前記第2対象物の投影像が互いに重なるか否かを判定する第2基準面判定工程、および
e3軸とe1軸とからなる第3基準面において、前記第1対象物および前記第2対象物の投影像が互いに重なるか否かを判定する第3基準面判定工程を含み、
前記立体判定工程では、前記投影像判定工程で前記第1基準面、前記第2基準面、および前記第3基準面の全てにおいて前記第1対象物および前記第2対象物の投影像が互いに重なると判定された場合に、前記第1対象物と前記第2対象物とが干渉していない状態であると判定する、
シミュレーション方法。
6.4または5に記載のシミュレーション方法において、
前記座標定義工程では、前記第1対象物の中心が原点と一致し、前記第1対象物の主面とe3軸とが直交し、前記第2対象物の主面の法線ベクトルのe2成分が0となるよう前記直交座標系を定義し、
前記第1対象物および前記第2対象物は円板状である、
シミュレーション方法。
7.4から6のいずれか一つに記載のシミュレーション方法において、
前記第1基準面判定工程を少なくとも含み、
前記第1基準面判定工程は、
前記第1基準面において、前記第1対象物の投影像と、前記第2対象物の投影像のうち当該対象物の上面の投影部分である第1投影領域とが、重なるか否かを判定する第1部分判定工程、
前記第1基準面において、前記第1対象物の投影像と、前記第2対象物の投影像のうち当該対象物の下面の投影部分である第2投影領域とが、重なるか否かを判定する第2部分判定工程、および
前記第1基準面において、前記第1対象物の投影像と、前記第2対象物の投影像のうち前記第1投影領域にも前記第2投影領域にも含まれない領域の全てを含む第3投影領域とが、重なるか否かを判定する第3部分判定工程のうち少なくとも一つを含み、
前記第1部分判定工程、前記第2部分判定工程、および前記第3部分判定工程の少なくとも一つにおいて、重なると判定された場合に、前記第1基準面において、前記第1対象物および前記第2対象物の投影像が互いに重なると判定する、
シミュレーション方法。
8.4から6のいずれか一つに記載のシミュレーション方法において、
前記第1基準面判定工程を少なくとも含み、
前記第1基準面判定工程は、
前記第1基準面において、前記第1対象物の投影像と、前記第2対象物の投影像のうち当該対象物の上面の投影部分である第1投影領域とが、重なるか否かを判定する第1部分判定工程と、
前記第1基準面において、前記第1対象物の投影像と、前記第2対象物の投影像のうち当該対象物の下面の投影部分である第2投影領域とが、重なるか否かを判定する第2部分判定工程と、
前記第1基準面において、前記第1対象物の投影像と、前記第2対象物の投影像のうち前記第1投影領域にも前記第2投影領域にも含まれない領域の全てを含む第3投影領域とが、重なるか否かを判定する第3部分判定工程とを含み、
前記第1部分判定工程、前記第2部分判定工程、および前記第3部分判定工程の全てにおいて、重ならないと判定された場合に、前記第1基準面において、前記第1対象物および前記第2対象物の投影像が互いに重ならないと判定する、
シミュレーション方法。
9.7または8に記載のシミュレーション方法において、
前記第1部分判定工程を含む場合、前記第1部分判定工程では、式(11)が成り立たない場合に、前記第1対象物の投影像と、前記第1投影領域とが、重ならないと判定し、
前記第2部分判定工程を含む場合、前記第2部分判定工程では、式(12)が成り立たない場合に、前記第1対象物の投影像と、前記第2投影領域とが、重ならないと判定し、
前記第3部分判定工程を含む場合、前記第3部分判定工程では、式(13)および式(14)の少なくとも一方が成り立たない場合に、前記第1対象物の投影像と、前記第3投影領域とが、重ならないと判定するシミュレーション方法。
ただし、rpは前記第1対象物の半径であり、rcは前記第2対象物の半径であり、lcは前記第2対象物の厚みであり、座標(a,b,c)は前記直交座標系における前記第2対象物の中心座標であり、角度θは、前記第1対象物の主面の法線ベクトルと、前記第2対象物の主面の法線ベクトルとのなす角であり、θは0rad以上π/2rad以下である。
10.4から9のいずれか一つに記載のシミュレーション方法において、
前記第2基準面判定工程を少なくとも含み、
前記第2基準面判定工程では、
前記第2基準面において、前記第1対象物の投影像および前記第2対象物の投影像を用いて定められる第1判定領域内に、前記第2対象物の判定対象線上の少なくとも一点が含まれる場合に、前記第2基準面において、前記第1対象物および前記第2対象物の投影像が互いに重なると判定し、
前記第1判定領域は、前記第2対象物の投影像のうち当該対象物の上面の投影部分と同一形状の楕円を、前記第1対象物の投影像に外接させて転がさずに動かしたとき、当該楕円の中心が描く線を輪郭とする領域であり、
前記判定対象線は、前記第2基準面における前記第2対象物の投影像のうち、当該対象物の下面の中心の投影点に相当する下面中心投影点と、当該対象物の上面の中心の投影点に相当する上面中心投影点とを結ぶ線分である、
シミュレーション方法。
11.4から9のいずれか一つに記載のシミュレーション方法において、
前記第2基準面判定工程を少なくとも含み、
前記第2基準面判定工程では、
前記第2基準面において、前記第1対象物の投影像および前記第2対象物の投影像を用いて定められる第1判定領域内に、前記第2対象物の判定対象線上のいずれの点も含まれない場合に、前記第2基準面において、前記第1対象物および前記第2対象物の投影像が互いに重ならないと判定し、
前記第1判定領域は、前記第2対象物の投影像のうち当該対象物の上面の投影部分と同一形状の楕円を、前記第1対象物の投影像に外接させて転がさずに動かしたとき、当該楕円の中心が描く線を輪郭とする領域であり、
前記判定対象線は、前記第2基準面における前記第2対象物の投影像のうち、当該対象物の下面の中心の投影点に相当する下面中心投影点と、当該対象物の上面の中心の投影点に相当する上面中心投影点とを結ぶ線分である、
シミュレーション方法。
12.4から9のいずれか一つに記載のシミュレーション方法において、
前記第2基準面判定工程を少なくとも含み、
前記第2基準面判定工程では、
前記第2基準面において、前記第1対象物の投影像および前記第2対象物の投影像を用いて定められる第1判定領域内に前記第2対象物の複数の判定対象点が含まれるか否かを判定し、
前記複数の判定対象点のいずれも前記第1判定領域内にない場合に、前記第2基準面において、前記第1対象物および前記第2対象物の投影像が互いに重ならないと判定し、
前記第1判定領域は、前記第2対象物の投影像のうち当該対象物の上面の投影部分と同一形状の楕円を、前記第1対象物の投影像に外接させて転がさずに動かしたとき、当該楕円の中心が描く線を輪郭とする領域であり、
前記複数の判定対象点は、
前記第2基準面における前記第2対象物の投影像のうち、当該対象物の下面の中心の投影点に相当する下面中心投影点と、当該対象物の上面の中心の投影点に相当する上面中心投影点とを結ぶ線分上にある複数の点であり、
少なくとも前記下面中心投影点および前記上面中心投影点を含み、
互いに隣接する前記判定対象点間の距離は前記第1対象物の厚みよりも小さい、
シミュレーション方法。
13.4から9のいずれか一つに記載のシミュレーション方法において、
前記第2基準面判定工程を少なくとも含み、
前記第2基準面判定工程では、
前記第2基準面において、前記第1対象物の投影像および前記第2対象物の投影像を用いて定められる第1判定領域内に前記第2対象物の複数の判定対象点が含まれるか否かを判定し、
前記複数の判定対象点の少なくとも一つが前記第1判定領域内にある場合に、前記第2基準面において、前記第1対象物および前記第2対象物の投影像が互いに重なると判定し、
前記第1判定領域は、前記第2対象物の投影像のうち当該対象物の上面の投影部分と同一形状の楕円を、前記第1対象物の投影像に外接させて転がさずに動かしたとき、当該楕円の中心が描く線を輪郭とする領域であり、
前記複数の判定対象点は、
前記第2基準面における前記第2対象物の投影像のうち、当該対象物の下面の中心の投影点に相当する下面中心投影点と、当該対象物の上面の中心の投影点に相当する上面中心投影点とを結ぶ線分上にある複数の点であり、
少なくとも前記下面中心投影点および前記上面中心投影点を含み、
互いに隣接する前記判定対象点間の距離は前記第1対象物の厚みよりも小さい、
シミュレーション方法。
14.12または13に記載のシミュレーション方法において、
前記第2基準面判定工程は、
前記複数の判定対象点の前記第2基準面における座標をそれぞれ(e2n,e3n)(n=1,2,・・・)としたとき、
式(15)が成立するか否かを判定する工程、
式(16)が成立するか否かを判定する工程、
式(17)が成立するか否かを判定する工程、
式(18)が成立するか否かを判定する工程、
式(19)および式(20)のいずれもが成立するか否かを判定する工程、および
式(21)および式(22)のいずれもが成立するか否かを判定する工程のうち少なくとも一つを含み、
前記式(15)が成立するか否かを判定する工程において成立すると判定された場合、
前記式(16)が成立するか否かを判定する工程において成立すると判定された場合、
前記式(17)が成立するか否かを判定する工程において成立すると判定された場合、
前記式(18)が成立するか否かを判定する工程において成立すると判定された場合、
前記式(19)および式(20)のいずれもが成立するか否かを判定する工程でいずれもが成立すると判定された場合、または
前記式(21)および式(22)のいずれもが成立するか否かを判定する工程でいずれもが成立すると判定された場合に、
前記判定対象点が前記第1判定領域内にあると判定する、
シミュレーション方法。
ただし、rpは前記第1対象物の半径であり、lpは前記第1対象物の厚みであり、rcは前記第2対象物の半径であり、角度θは、前記第1対象物の主面の法線ベクトルと、前記第2対象物の主面の法線ベクトルとのなす角であり、θは0rad以上π/2rad以下である。
15.12または13に記載のシミュレーション方法において、
前記第2基準面判定工程は、
前記複数の判定対象点の前記第2基準面における座標をそれぞれ(e2n,e3n)(n=1,2,・・・)としたとき、
式(15)が成立するか否かを判定する工程、
式(16)が成立するか否かを判定する工程、
式(17)が成立するか否かを判定する工程、
式(18)が成立するか否かを判定する工程、
式(19)および式(20)のいずれもが成立するか否かを判定する工程、および
式(21)および式(22)のいずれもが成立するか否かを判定する工程を含み、
前記式(15)が成立するか否かを判定する工程において成立しないと判定され、かつ、
前記式(16)が成立するか否かを判定する工程において成立しないと判定され、かつ、
前記式(17)が成立するか否かを判定する工程において成立しないと判定され、かつ、
前記式(18)が成立するか否かを判定する工程において成立しないと判定され、かつ、
前記式(19)および式(20)のいずれもが成立するか否かを判定する工程で少なくとも一方が成立しないと判定され、かつ、
前記式(21)および式(22)のいずれもが成立するか否かを判定する工程で少なくとも一方が成立しないと判定された場合に、
前記判定対象点が前記第1判定領域内にないと判定する、
シミュレーション方法。
ただし、rpは前記第1対象物の半径であり、lpは前記第1対象物の厚みであり、rcは前記第2対象物の半径であり、角度θは、前記第1対象物の主面の法線ベクトルと、前記第2対象物の主面の法線ベクトルとのなす角であり、θは0rad以上π/2rad以下である。
16.4から15のいずれか一つに記載のシミュレーション方法において、
前記第3基準面判定工程を少なくとも含み、
前記第3基準面判定工程では、
前記第3基準面において、前記第1対象物の投影像および前記第2対象物の投影像を用いて定められる第2判定領域内に、前記第2対象物の投影像の中心点が含まれるか否かを判定し、
当該中心点が前記第2判定領域内に含まれない場合に、前記第3基準面において、前記第1対象物および前記第2対象物の投影像が互いに重ならないと判定し、
前記第2判定領域は、前記第2対象物の投影像と同一形状の四角形を、前記第1対象物の投影像に外接させて転がさずに動かしたとき、当該四角形の中心が描く線を輪郭とする領域である、
シミュレーション方法。
17.4から15のいずれか一つに記載のシミュレーション方法において、
前記第3基準面判定工程を少なくとも含み、
前記第3基準面判定工程では、
前記第3基準面において、前記第1対象物の投影像および前記第2対象物の投影像を用いて定められる第2判定領域内に、前記第2対象物の投影像の中心点が含まれるか否かを判定し、
当該中心点が前記第2判定領域内に含まれる場合に、前記第3基準面において、前記第1対象物および前記第2対象物の投影像が互いに重なると判定し、
前記第2判定領域は、前記第2対象物の投影像と同一形状の四角形を、前記第1対象物の投影像に外接させて転がさずに動かしたとき、当該四角形の中心が描く線を輪郭とする領域である、
シミュレーション方法。
18.16または17に記載のシミュレーション方法において、
前記第3基準面判定工程では、
前記第2判定領域を、当該領域の輪郭の隣接する2つの頂点と、前記第3基準面の原点とを結ぶ三角形からなる複数の分割領域に分割し、
前記複数の分割領域のうち少なくとも一つに、前記第2対象物の投影像の中心点が含まれるか否かを判定し、
前記複数の分割領域の少なくとも一つに当該中心点が含まれる場合に、当該中心点が前記第2判定領域内にあると判定する、
シミュレーション方法。
19.16または17に記載のシミュレーション方法において、
前記第3基準面判定工程では、
前記第2判定領域を、当該領域の輪郭の隣接する2つの頂点と、前記第3基準面の原点とを結ぶ三角形からなる複数の分割領域に分割し、
前記複数の分割領域のそれぞれに、前記第2対象物の投影像の中心点が含まれるか否かを判定し、
前記複数の分割領域のいずれにも当該中心点が含まれない場合に、当該中心点が前記第2判定領域内にないと判定する、
シミュレーション方法。
20.18または19に記載のシミュレーション方法において、
前記第2判定領域の頂点Am=(e1m,e3m)(m=1〜8)はそれぞれ式(32)から式(39)で表され、
前記第2対象物の投影像の中心点Pは(e1,e3)=(a,c)で表され、
前記複数の分割領域は、前記第3基準面の原点Oを用いて、それぞれ三角形OAiAj((i,j)=(1,2),(2,3),(3,4),(4,5),(5,6),(6,7),(7,8),(8,1))で表され、
Ai=(e1i,e3i)およびAj=(e1j,e3j)としたとき、式(30)および式(31)で表されるαおよびβについて、式(27)、式(28)、および式(29)の少なくともひとつが成り立たない場合に、各前記分割領域である三角形OAiAj内に前記第2対象物の投影像の中心点が含まれないと判定する、
シミュレーション方法。
ただし、rpは前記第1対象物の半径であり、lpは前記第1対象物の厚みであり、rcは前記第2対象物の半径であり、lcは前記第2対象物の厚みであり、角度θは、前記第1対象物の主面の法線ベクトルと、前記第2対象物の主面の法線ベクトルとのなす角であり、θは0rad以上π/2rad以下である。
21.3に記載のシミュレーション方法において、
前記複数の物体は、第1の前記板状の物体および第2の前記板状の物体を少なくとも含み、
前記複数の物体から、第1対象物および第2対象物を選択する工程と、
少なくとも1つの基準平面に投影した、前記第1対象物および前記第2対象物の投影像が互いに重なるか否かを判定する工程と、
前記投影像が互いに重なるか否かの判定結果に基づいて、前記第1対象物と前記第2対象物とが干渉するか否かを判定する工程とを含む、
シミュレーション方法。
Hereinafter, an example of a reference form is added.
1. A simulation method of a three-dimensional space in which a plurality of objects are arranged,
Information indicating the temporary filling area obtained by acquiring the information indicating the filling area from the spatial state data indicating the arrangement state of the plurality of objects arranged in the filling area having a finite volume, and indicating the temporary filling area reduced in the filling area Temporary filling area definition step of generating
An area outside the temporary filling area or a boundary between the temporary filling area and the area outside the temporary filling area based on the information indicating the arrangement state of the plurality of objects and the information indicating the temporary filling area, and at least one object Interference determination step of determining whether or not the
In the reduced interference determination step, when it is determined that the region outside the area or the boundary thereof interferes with the at least one object, the spatial state data is not changed, and none of the objects is outside the area When it is determined that neither the region nor the boundary interferes with the region, the temporary filling region is defined as a new filling region, and information indicating the arrangement state of the plurality of objects disposed in the new filling region is used. And d) reducing the next state determination step to be new space state data;
Simulation method.
In the simulation method described in 2.1,
The method further includes an object moving step of acquiring the spatial state data, moving at least one of the plurality of objects, and generating post-movement state data including position information of the moved object,
In the reduced interference determination step, at least one of an area outside the temporary filling area or a boundary between the temporary filling area and the area outside the temporary filling area based on the post-transfer state data and the information indicating the temporary filling area. Determine whether or not the object interferes with the object;
In the reduction next state determination step, the space state data is not changed when it is determined in the reduction interference determination step that at least one of the outer region or the boundary and the at least one object interfere with each other. When it is determined that neither the object nor the region outside the object interferes with the boundary either, the temporary filling region is defined as a new filling region, and the moving object is disposed within the new filling region. Information indicating the arrangement state of the plurality of objects based on state data is taken as the new spatial state data,
Repeatedly performing state change processing for performing the object moving step, the temporary filling region defining step, the reduction interference determination step, and the reduction next state determination step;
Simulation method.
In the simulation method described in 3.2,
In the object moving step,
A moving object selection step of selecting at least one moving object to be moved among the plurality of objects;
A movement information generation step of generating movement information indicating how to move the movement object;
An object moving step of generating post temporary movement state data including information on at least an arrangement state of the movement object in the three-dimensional space after moving the movement object based on the movement information;
Whether or not the plurality of objects interfere with each other in the three-dimensional space based on the temporary movement state data, an area outside the filling area, or a boundary between the filling area and the area outside the filling area A movement interference determination step of determining whether or not there is interference with at least one of the objects;
In the movement interference determination step, the temporary movement is determined when it is determined that the plurality of objects do not interfere with each other, and it is determined that none of the objects also interfere with the region outside the region or the boundary Moving subsequent state determination step of generating post state data as the post movement state data;
At least one of the plurality of objects is a plate-like object,
In the object moving step, at least one of parallel movement and rotational movement of the moving object is performed.
Simulation method.
In the simulation method described in 4.3,
The plurality of objects include at least a first plate-like object and a second plate-like object.
In the movement interference determination step,
A determination target selection step of selecting a first target which is the first plate-like object and a second target which is the second plate-like object from the plurality of objects;
A coordinate definition step of defining one orthogonal coordinate system for the first object and the second object;
A projection image determination step of determining whether the projection images of the first object and the second object, which are projected on the reference plane of the orthogonal coordinate system, overlap each other;
A solid determination step of determining whether the first object and the second object interfere with each other in the three-dimensional space;
The orthogonal coordinate system comprises axes e 1 , e 2 and e 3 orthogonal to one another,
In the projection image determination step,
a first reference plane determination step of determining whether or not projected images of the first object and the second object overlap each other in a first reference plane consisting of an e 1 axis and an e 2 axis;
In the second reference plane consisting of e 2 axes and e 3 axes, the second reference surface determining step of determining whether the projected image overlap each other of the first object and the second object, and e 3 axes and the third reference plane consisting of e 1 axis includes at least one of the first object and the third reference surface determining step of determining whether the projected image overlap each other of the second object,
In the solid determination step, projected images of the first object and the second object on at least one of the first reference surface, the second reference surface, and the third reference surface in the projected image determination step Are determined not to overlap with each other, it is determined that the first object and the second object do not interfere with each other,
Simulation method.
In the simulation method described in 5.3,
The plurality of objects include at least a first plate-like object and a second plate-like object.
In the movement interference determination step,
A determination target selection step of selecting a first target which is the first plate-like object and a second target which is the second plate-like object from the plurality of objects;
A coordinate definition step of defining one orthogonal coordinate system for the first object and the second object;
A projection image determination step of determining whether the projection images of the first object and the second object, which are projected on the reference plane of the orthogonal coordinate system, overlap each other;
A solid determination step of determining whether the first object and the second object interfere with each other in the three-dimensional space;
The orthogonal coordinate system comprises axes e 1 , e 2 and e 3 orthogonal to one another,
In the projection image determination step,
a first reference plane determination step of determining whether or not projected images of the first object and the second object overlap each other in a first reference plane consisting of an e 1 axis and an e 2 axis;
In the second reference plane consisting of e 2 axes and e 3 axes, the second reference surface determining step of determining whether the projected image overlap each other of the first object and the second object, and e 3 axes and the third reference plane consisting of e 1 axis includes a third reference surface determining step of determining whether the projected image of the first object and the second object are overlapped with each other,
In the solid determination step, the projected images of the first object and the second object overlap each other in all of the first reference surface, the second reference surface, and the third reference surface in the projected image determination step. When it is determined that the first object and the second object do not interfere with each other,
Simulation method.
In the simulation method described in 6.4 or 5,
In the coordinate defining step, the center of the first object matches the origin, the a major surface and e 3 axis of the first object is orthogonal, e of the normal vector of the principal surface of the second object Define the orthogonal coordinate system so that two components become 0,
The first object and the second object are disk-shaped,
Simulation method.
In the simulation method according to any one of 7.4 to 6,
At least including the first reference surface determination step,
In the first reference surface determination step,
In the first reference plane, it is determined whether or not the projection image of the first object and the first projection area which is a projection portion of the upper surface of the object in the projection image of the second object overlap. First part determination step
In the first reference plane, it is determined whether or not the projection image of the first object and a second projection area which is a projection portion of the lower surface of the object in the projection image of the second object overlap. And the second projection area of the projection image of the first object and the projection image of the second object in the first reference plane. Including at least one of a third part determination step of determining whether or not a third projection area including all of the non-inclusive areas overlaps the third projection area;
In at least one of the first part determination step, the second part determination step, and the third part determination step, the first object and the first part are determined on the first reference surface when it is determined that they overlap. It is determined that the projected images of the two objects overlap each other,
Simulation method.
In the simulation method according to any one of 8.4 to 6,
At least including the first reference surface determination step,
In the first reference surface determination step,
In the first reference plane, it is determined whether or not the projection image of the first object and the first projection area which is a projection portion of the upper surface of the object in the projection image of the second object overlap. A first part determination step to
In the first reference plane, it is determined whether or not the projection image of the first object and a second projection area which is a projection portion of the lower surface of the object in the projection image of the second object overlap. A second part determination step to
The first reference plane includes all of a projection image of the first object and a projection image of the second object which is not included in either the first projection region or the second projection region. And a third part determination step of determining whether or not the three projection areas overlap.
The first object and the second in the first reference surface when it is determined not to overlap in all of the first part determination step, the second part determination step, and the third part determination step. Determine that the projected images of the objects do not overlap each other,
Simulation method.
In the simulation method described in 9.7 or 8,
When the first part determination step is included, in the first part determination step, it is determined that the projection image of the first object and the first projection area do not overlap if equation (11) does not hold. And
When the second part determination step is included, in the second part determination step, it is determined that the projection image of the first object and the second projection region do not overlap if equation (12) does not hold. And
In the case where the third part determination step is included, in the third part determination step, the projected image of the first object and the third projection when at least one of Expression (13) and Expression (14) does not hold. A simulation method that determines that areas do not overlap.
Where r p is the radius of the first object, r c is the radius of the second object, l c is the thickness of the second object, and the coordinates (a, b, c) are The central coordinates of the second object in the orthogonal coordinate system, and the angle θ is the angle between the normal vector of the main surface of the first object and the normal vector of the main surface of the second object Is 0 rad or more and π / 2 rad or less.
In the simulation method according to any one of 10.4 to 9,
At least including the second reference surface determination step,
In the second reference surface determination step,
In the second reference plane, at least one point on the determination target line of the second object is included in a first determination area defined using the projection image of the first object and the projection image of the second object. When it is determined that the projection images of the first object and the second object overlap each other on the second reference plane,
The first determination area moves an ellipse having the same shape as the projected portion of the upper surface of the target object in the projection image of the second object by circling the projection image of the first object without moving it. When the center of the ellipse draws a line
The determination target line is a lower surface center projection point corresponding to the projection point of the center of the lower surface of the target object in the projection image of the second object on the second reference plane, and the center of the upper surface of the target object It is a line segment connecting the top center projection point corresponding to the projection point,
Simulation method.
11. In the simulation method according to any one of 11.4 to 9,
At least including the second reference surface determination step,
In the second reference surface determination step,
In the first determination area defined using the projection image of the first object and the projection image of the second object on the second reference plane, any point on the determination target line of the second object is When it is not included, it is determined that the projection images of the first object and the second object do not overlap each other on the second reference plane,
The first determination area moves an ellipse having the same shape as the projected portion of the upper surface of the target object in the projection image of the second object by circling the projection image of the first object without moving it. When the center of the ellipse draws a line
The determination target line is a lower surface center projection point corresponding to the projection point of the center of the lower surface of the target object in the projection image of the second object on the second reference plane, and the center of the upper surface of the target object It is a line segment connecting the top center projection point corresponding to the projection point,
Simulation method.
In the simulation method according to any one of 12.4 to 9,
At least including the second reference surface determination step,
In the second reference surface determination step,
Whether a plurality of determination target points of the second object are included in a first determination area defined using the projection image of the first object and the projection image of the second object in the second reference plane Determine whether or not
When none of the plurality of determination target points is within the first determination region, it is determined that the projection images of the first object and the second object do not overlap each other on the second reference surface,
The first determination area moves an ellipse having the same shape as the projected portion of the upper surface of the target object in the projection image of the second object by circling the projection image of the first object without moving it. When the center of the ellipse draws a line
The plurality of judgment target points are
Of the projection images of the second object on the second reference plane, a lower surface center projection point corresponding to the projection point of the center of the lower surface of the object and an upper surface corresponding to the projection point of the center of the upper surface of the object Multiple points on a line connecting the central projection point,
At least the lower surface center projection point and the upper surface center projection point,
The distance between the judgment target points adjacent to each other is smaller than the thickness of the first object,
Simulation method.
In the simulation method according to any one of 13.4 to 9,
At least including the second reference surface determination step,
In the second reference surface determination step,
Whether a plurality of determination target points of the second object are included in a first determination area defined using the projection image of the first object and the projection image of the second object in the second reference plane Determine whether or not
When at least one of the plurality of determination target points is within the first determination region, it is determined that the projection images of the first object and the second object overlap each other on the second reference surface,
The first determination area moves an ellipse having the same shape as the projected portion of the upper surface of the target object in the projection image of the second object by circling the projection image of the first object without moving it. When the center of the ellipse draws a line
The plurality of judgment target points are
Of the projection images of the second object on the second reference plane, a lower surface center projection point corresponding to the projection point of the center of the lower surface of the object and an upper surface corresponding to the projection point of the center of the upper surface of the object Multiple points on a line connecting the central projection point,
At least the lower surface center projection point and the upper surface center projection point,
The distance between the judgment target points adjacent to each other is smaller than the thickness of the first object,
Simulation method.
In the simulation method described in 14.12 or 13,
In the second reference surface determination step,
Assuming that the coordinates of the plurality of determination target points on the second reference plane are (e 2n , e 3n ) (n = 1, 2,...), Respectively
A step of determining whether or not the equation (15) holds
A step of determining whether or not equation (16) holds
A step of determining whether or not equation (17) holds
A step of determining whether or not the equation (18) holds
At least one of the steps of determining whether or not both of Expression (19) and Expression (20) hold, and determining whether or not both of Expression (21) and Expression (22) hold. One,
If it is determined in the step of determining whether the equation (15) is established, it is determined that
When it is determined in the step of determining whether or not the above equation (16) is established,
When it is determined in the step of determining whether or not the equation (17) is established,
If it is determined in the step of determining whether the equation (18) holds, it is determined that
If it is determined that both of the above equations (19) and (20) are satisfied, or if both of the above equations (21) and (22) are satisfied. If it is determined in the step of determining whether or not to
It is determined that the determination target point is within the first determination area.
Simulation method.
Where r p is the radius of the first object, l p is the thickness of the first object, r c is the radius of the second object, and the angle θ is the first object Is an angle between a normal vector of the main surface of the main surface and a normal vector of the main surface of the second object, and θ is 0 rad or more and π / 2 rad or less.
In the simulation method described in 15.12 or 13,
In the second reference surface determination step,
Assuming that the coordinates of the plurality of determination target points on the second reference plane are (e 2n , e 3n ) (n = 1, 2,...), Respectively
A step of determining whether or not the equation (15) holds
A step of determining whether or not equation (16) holds
A step of determining whether or not equation (17) holds
A step of determining whether or not the equation (18) holds
Determining whether or not both of the equations (19) and (20) hold, and determining whether or not both of the equations (21) and (22) hold.
It is determined in the process of determining whether the above equation (15) is established or not, and
It is determined in the process of determining whether the above equation (16) is established or not, and
It is determined in the process of determining whether the above equation (17) is established or not, and
It is determined in the process of determining whether the above equation (18) is established or not, and
It is determined that at least one does not hold in the step of determining whether or not both of the expressions (19) and (20) hold, and
When it is determined that at least one does not hold in the step of judging whether or not both of the expressions (21) and (22) hold.
Determining that the determination target point is not within the first determination area;
Simulation method.
Where r p is the radius of the first object, l p is the thickness of the first object, r c is the radius of the second object, and the angle θ is the first object Is an angle between a normal vector of the main surface of the main surface and a normal vector of the main surface of the second object, and θ is 0 rad or more and π / 2 rad or less.
In the simulation method according to any one of 16.4 to 15,
At least including the third reference surface determination step,
In the third reference surface determination step,
In the third reference plane, the central point of the projection image of the second object is included in a second determination area defined using the projection image of the first object and the projection image of the second object. To determine whether or not
When the center point is not included in the second determination area, it is determined that the projection images of the first object and the second object do not overlap each other on the third reference plane,
The second determination area is a line drawn by the center of the quadrilateral when the quadrilateral having the same shape as the projected image of the second object is moved without circling the projected image of the first object. Is an area that outlines
Simulation method.
In the simulation method according to any one of 17.4 to 15,
At least including the third reference surface determination step,
In the third reference surface determination step,
In the third reference plane, the central point of the projection image of the second object is included in a second determination area defined using the projection image of the first object and the projection image of the second object. To determine whether or not
When the center point is included in the second determination area, it is determined that the projection images of the first object and the second object overlap each other on the third reference plane,
The second determination area is a line drawn by the center of the quadrilateral when the quadrilateral having the same shape as the projected image of the second object is moved without circling the projected image of the first object. Is an area that outlines
Simulation method.
In the simulation method described in 18.16 or 17,
In the third reference surface determination step,
The second determination area is divided into a plurality of divided areas formed of triangles connecting two adjacent vertices of the outline of the area and the origin of the third reference surface,
It is determined whether or not the center point of the projected image of the second object is included in at least one of the plurality of divided areas,
When the center point is included in at least one of the plurality of divided areas, it is determined that the center point is within the second determination area;
Simulation method.
In the simulation method described in 19.16 or 17,
In the third reference surface determination step,
The second determination area is divided into a plurality of divided areas formed of triangles connecting two adjacent vertices of the outline of the area and the origin of the third reference surface,
It is determined whether or not the central point of the projection image of the second object is included in each of the plurality of divided areas,
When the center point is not included in any of the plurality of divided areas, it is determined that the center point is not within the second determination area.
Simulation method.
In the simulation method described in 20.18 or 19,
The vertices A m = (e 1m , e 3m ) (m = 1 to 8) of the second determination area are expressed by the equations (32) to (39), respectively.
The center point P of the projection image of the second object is represented by (e 1 , e 3 ) = (a, c),
Each of the plurality of divided areas is a triangle OA i A j ((i, j) = (1, 2), (2, 3), (3, 4),) using the origin O of the third reference plane. (4, 5), (5, 6), (6, 7), (7, 8), (8, 1)),
Assuming that A i = (e 1i , e 3i ) and A j = (e 1j , e 3j ), for α and β represented by the formula (30) and the formula (31), 28), and if at least one of formula (29) is not satisfied, it is determined that the center point of the projected image of the second object in a triangle OA i in a j is each of the divided regions is not included,
Simulation method.
Where r p is the radius of the first object, l p is the thickness of the first object, r c is the radius of the second object, and l c is the second object. Thickness is the angle between the normal vector of the main surface of the first object and the normal vector of the main surface of the second object, and θ is 0 rad or more and π / 2 rad or less is there.
In the simulation method described in 21.3,
The plurality of objects include at least a first plate-like object and a second plate-like object.
Selecting a first object and a second object from the plurality of objects;
Determining whether the projected images of the first object and the second object projected onto at least one reference plane overlap each other;
Determining whether or not the first object and the second object interfere with each other based on the determination result of whether or not the projected images overlap with each other.
Simulation method.
10 判定対象物選択部
100 シミュレーション装置
12 移動対象物選択部
14 移動情報生成部
16 対象物移動部
18 移動次状態決定部
20 座標定義部
22 乱雑度判定部
24 物体移動部
26 記憶部
30 投影像判定部
32 第1基準面判定部
34 第2基準面判定部
36 第3基準面判定部
40 立体判定部
50 物体
500 主面
504 点線
52 第1対象物
520,521,581 円
502,522,524,550,551,571,572,573 四角形
523 図形
525 八角形
526,527,543,545 領域
54 第2対象物
540,541,542,544,546,547,548,549 楕円
56 移動対象物
57 板状の物体
58 球状の物体
60 充填領域
70 移動干渉判定部
80 判定対象点
82 判定対象線
820 上面中心投影点
840 下面中心投影点
92 仮充填領域定義部
94 縮小干渉判定部
96 縮小次状態決定部
98 体積判定部
DESCRIPTION OF
Claims (10)
有限の体積を有する充填領域内に配置された前記複数の物体の配置状態を示す空間状態データのうち、前記充填領域を示す情報を取得し、前記充填領域を縮小させた仮充填領域を示す情報を生成する仮充填領域定義工程と、
前記複数の物体の配置状態を示す情報および前記仮充填領域を示す情報に基づき、前記仮充填領域の外の領域、又は前記仮充填領域と当該外の領域との境界と、少なくとも1つの前記物体とが干渉しているか否かの判定を行う縮小干渉判定工程と、
前記縮小干渉判定工程において、当該外の領域又は当該境界と、少なくとも1つの前記物体とが干渉していると判定された場合に、前記空間状態データを変更せず、いずれの前記物体も当該外の領域とも当該境界とも干渉していないと判定された場合に、前記仮充填領域を新たな前記充填領域とし、前記新たな充填領域内に配置された前記複数の物体の配置状態を示す情報を新たな前記空間状態データとする、縮小次状態決定工程とを含む、
シミュレーション方法。 A simulation method of a three-dimensional space in which a plurality of objects are arranged,
Information indicating the temporary filling area obtained by acquiring the information indicating the filling area from the spatial state data indicating the arrangement state of the plurality of objects arranged in the filling area having a finite volume, and indicating the temporary filling area reduced in the filling area Temporary filling area definition step of generating
An area outside the temporary filling area or a boundary between the temporary filling area and the area outside the temporary filling area based on the information indicating the arrangement state of the plurality of objects and the information indicating the temporary filling area, and at least one object Interference determination step of determining whether or not the
In the reduced interference determination step, when it is determined that the region outside the area or the boundary thereof interferes with the at least one object, the spatial state data is not changed, and none of the objects is outside the area When it is determined that neither the region nor the boundary interferes with the region, the temporary filling region is defined as a new filling region, and information indicating the arrangement state of the plurality of objects disposed in the new filling region is used. And d) reducing the next state determination step to be new space state data;
Simulation method.
前記空間状態データを取得し、前記複数の物体の内、少なくとも一つを移動させ、移動させた前記物体の配置情報を含む移動後状態データを生成する物体移動工程をさらに含み、
前記縮小干渉判定工程では、前記移動後状態データおよび前記仮充填領域を示す情報に基づき、前記仮充填領域の外の領域、又は前記仮充填領域と当該外の領域との境界と、少なくとも1つの前記物体とが干渉しているか否かの判定を行い、
前記縮小次状態決定工程では、前記縮小干渉判定工程において、当該外の領域又は当該境界と、少なくとも1つの前記物体とが干渉していると判定された場合に、前記空間状態データを変更せず、いずれの前記物体も当該外の領域とも当該境界とも干渉していないと判定された場合に、前記仮充填領域を新たな前記充填領域とし、前記新たな充填領域内に配置された前記移動後状態データに基づく前記複数の物体の配置状態を示す情報を新たな前記空間状態データとし、
前記物体移動工程、前記仮充填領域定義工程、前記縮小干渉判定工程、および前記縮小次状態決定工程を行う状態変更処理を繰り返し行う、
シミュレーション方法。 In the simulation method according to claim 1,
The method further includes an object moving step of acquiring the spatial state data, moving at least one of the plurality of objects, and generating post-movement state data including position information of the moved object,
In the reduced interference determination step, at least one of an area outside the temporary filling area or a boundary between the temporary filling area and the area outside the temporary filling area based on the post-transfer state data and the information indicating the temporary filling area. Determine whether or not the object interferes with the object;
In the reduction next state determination step, the space state data is not changed when it is determined in the reduction interference determination step that at least one of the outer region or the boundary and the at least one object interfere with each other. When it is determined that neither the object nor the region outside the object interferes with the boundary either, the temporary filling region is defined as a new filling region, and the moving object is disposed within the new filling region. Information indicating the arrangement state of the plurality of objects based on state data is taken as the new spatial state data,
Repeatedly performing state change processing for performing the object moving step, the temporary filling region defining step, the reduction interference determination step, and the reduction next state determination step;
Simulation method.
前記物体移動工程は、
前記複数の物体の内、移動させようとする少なくとも1つの移動対象物を選択する移動対象物選択工程と、
前記移動対象物をどのように移動させるかを示す移動情報を生成する移動情報生成工程と、
前記移動情報に基づき前記移動対象物を移動させた後の、前記三次元空間における少なくとも前記移動対象物の配置状態に関する情報を含む、仮移動後状態データを生成する対象物移動工程と、
前記仮移動後状態データに基づき、前記三次元空間において前記複数の物体が互いに干渉しているか否か、および、前記充填領域の外の領域、又は前記充填領域と当該外の領域との境界と、少なくとも1つの前記物体とが干渉しているか否かを判定する移動干渉判定工程と、
前記移動干渉判定工程において、前記複数の物体が互いに干渉していないと判定され、かつ、いずれの前記物体も当該外の領域とも当該境界とも干渉していないと判定された場合に、前記仮移動後状態データを前記移動後状態データとして生成する、移動次状態決定工程とを含み、
前記複数の物体の少なくとも1つは板状の物体であり、
前記対象物移動工程では、前記移動対象物の平行移動および回転移動のうち少なくとも一方を行う、
シミュレーション方法。 In the simulation method according to claim 2,
In the object moving step,
A moving object selection step of selecting at least one moving object to be moved among the plurality of objects;
A movement information generation step of generating movement information indicating how to move the movement object;
An object moving step of generating post temporary movement state data including information on at least an arrangement state of the movement object in the three-dimensional space after moving the movement object based on the movement information;
Whether or not the plurality of objects interfere with each other in the three-dimensional space based on the temporary movement state data, an area outside the filling area, or a boundary between the filling area and the area outside the filling area A movement interference determination step of determining whether or not there is interference with at least one of the objects;
In the movement interference determination step, the temporary movement is determined when it is determined that the plurality of objects do not interfere with each other, and it is determined that none of the objects also interfere with the region outside the region or the boundary Moving subsequent state determination step of generating post state data as the post movement state data;
At least one of the plurality of objects is a plate-like object,
In the object moving step, at least one of parallel movement and rotational movement of the moving object is performed.
Simulation method.
前記複数の物体は、第1の前記板状の物体および第2の前記板状の物体を少なくとも含み、
前記移動干渉判定工程は、
前記複数の物体から、前記第1の板状の物体である第1対象物と、前記第2の板状の物体である第2対象物とを選択する判定対象物選択工程と、
前記第1対象物および前記第2対象物に対し、1つの直交座標系を定義する座標定義工程と、
前記直交座標系の基準面に投影した、前記第1対象物および前記第2対象物の投影像が互いに重なるか否かを判定する投影像判定工程と、
前記三次元空間において前記第1対象物と前記第2対象物とが干渉するか否かを判定する立体判定工程とを含み、
前記直交座標系は、互いに直交するe1軸、e2軸、およびe3軸からなり、
前記投影像判定工程は、
e1軸とe2軸とからなる第1基準面において、前記第1対象物および前記第2対象物の投影像が互いに重なるか否かを判定する第1基準面判定工程、
e2軸とe3軸とからなる第2基準面において、前記第1対象物および前記第2対象物の投影像が互いに重なるか否かを判定する第2基準面判定工程、および
e3軸とe1軸とからなる第3基準面において、前記第1対象物および前記第2対象物の投影像が互いに重なるか否かを判定する第3基準面判定工程のうち少なくとも一つを含み、
前記立体判定工程では、前記投影像判定工程で前記第1基準面、前記第2基準面、および前記第3基準面のうち少なくとも一つにおいて前記第1対象物および前記第2対象物の投影像が互いに重ならないと判定された場合に、前記第1対象物と前記第2対象物とが干渉していない状態であると判定する、
シミュレーション方法。 In the simulation method according to claim 3,
The plurality of objects include at least a first plate-like object and a second plate-like object.
In the movement interference determination step,
A determination target selection step of selecting a first target which is the first plate-like object and a second target which is the second plate-like object from the plurality of objects;
A coordinate definition step of defining one orthogonal coordinate system for the first object and the second object;
A projection image determination step of determining whether the projection images of the first object and the second object, which are projected on the reference plane of the orthogonal coordinate system, overlap each other;
A solid determination step of determining whether the first object and the second object interfere with each other in the three-dimensional space;
The orthogonal coordinate system comprises axes e 1 , e 2 and e 3 orthogonal to one another,
In the projection image determination step,
a first reference plane determination step of determining whether or not projected images of the first object and the second object overlap each other in a first reference plane consisting of an e 1 axis and an e 2 axis;
In the second reference plane consisting of e 2 axes and e 3 axes, the second reference surface determining step of determining whether the projected image overlap each other of the first object and the second object, and e 3 axes and the third reference plane consisting of e 1 axis includes at least one of the first object and the third reference surface determining step of determining whether the projected image overlap each other of the second object,
In the solid determination step, projected images of the first object and the second object on at least one of the first reference surface, the second reference surface, and the third reference surface in the projected image determination step Are determined not to overlap with each other, it is determined that the first object and the second object do not interfere with each other,
Simulation method.
前記充填領域に対する前記複数の物体の体積占有率があらかじめ定めた基準を満たすか否かを判定する体積判定工程をさらに含み、
前記体積判定工程において前記体積占有率が基準を満たさないと判定された場合、少なくとも前記仮充填領域定義工程、前記縮小干渉判定工程、および前記縮小次状態決定工程を再度行い、前記体積占有率が基準を満たすと判定された場合、その時点で、または、前記物体移動工程と、前記仮充填領域定義工程、前記縮小干渉判定工程、および前記縮小次状態決定工程とのうち少なくともいずれか一方をさらに特定の回数行った後、前記状態変更処理の繰り返しを終了する、
シミュレーション方法。 The simulation method according to any one of claims 2 to 4
The method further includes a volume determining step of determining whether a volume occupancy of the plurality of objects with respect to the filling region satisfies a predetermined criterion.
If it is determined in the volume determination step that the volume occupancy does not satisfy the criteria, at least the temporary filling area definition step, the reduction interference determination step, and the reduction next state determination step are performed again, and the volume occupancy is If it is determined that the criterion is satisfied, then at least one of the object moving step, the temporary filling area defining step, the reduction interference determination step, and the reduction next state determination step is further performed at that time. After a specific number of times, the repetition of the state change process is ended,
Simulation method.
前記移動後状態データに基づき、前記三次元空間における前記複数の物体の乱雑度を示す乱雑度データを生成し、前記乱雑度があらかじめ定めた基準を満たすか否かを判定する乱雑度判定工程をさらに含み、
一度の前記状態変更処理において前記物体移動工程を繰り返し行い、
前記乱雑度判定工程において前記乱雑度が基準を満たさないと判定された場合、前記物体移動工程の繰り返しを続け、前記乱雑度が基準を満たすと判定された場合、その時点で、または、さらに特定の回数の前記物体移動工程を行った後、前記物体移動工程の繰り返しを終了する、
シミュレーション方法。 In the simulation method according to any one of claims 2 to 5,
A randomness determination step of generating randomness data indicating the randomness of the plurality of objects in the three-dimensional space based on the post-movement state data, and determining whether the randomness satisfies a predetermined criterion; In addition,
The object moving step is repeated in one state change process,
If it is determined in the randomness determination step that the randomness does not meet the criteria, the repetition of the object moving step is continued, and if it is determined that the randomness meets the criteria, or at that time, or more specific After performing the object moving process for the number of times, the repetition of the object moving process is ended,
Simulation method.
有限の体積を有する充填領域内に配置された前記複数の物体の配置状態を示す空間状態データのうち、前記充填領域を示す情報を取得し、前記充填領域を縮小させた仮充填領域を示す情報を生成する仮充填領域定義部と、
前記複数の物体の配置状態を示す情報および前記仮充填領域を示す情報に基づき、前記仮充填領域の外の領域、又は前記仮充填領域と当該外の領域との境界と、少なくとも1つの前記物体とが干渉しているか否かの判定を行う縮小干渉判定部と、
前記縮小干渉判定部が、当該外の領域又は当該境界と、少なくとも1つの前記物体とが干渉していると判定した場合に、前記空間状態データを変更せず、いずれの前記物体も当該外の領域とも当該境界とも干渉していないと判定した場合に、前記仮充填領域を新たな前記充填領域とし、前記新たな充填領域内に配置された前記複数の物体の配置状態を示す情報を新たな前記空間状態データとする、縮小次状態決定部とを備える、
シミュレーション装置。 A simulation apparatus of a three-dimensional space in which a plurality of objects are arranged,
Information indicating the temporary filling area obtained by acquiring the information indicating the filling area from the spatial state data indicating the arrangement state of the plurality of objects arranged in the filling area having a finite volume, and indicating the temporary filling area reduced in the filling area Temporary filling area definition unit that generates
An area outside the temporary filling area or a boundary between the temporary filling area and the area outside the temporary filling area based on the information indicating the arrangement state of the plurality of objects and the information indicating the temporary filling area, and at least one object And a reduced interference determination unit that determines whether or not the
When the reduced interference determination unit determines that the area outside the area or the boundary thereof interferes with the at least one object, the spatial state data is not changed, and any of the objects is outside the area When it is determined that neither the area nor the boundary interferes, the temporary filling area is set as a new filling area, and information indicating the arrangement state of the plurality of objects arranged in the new filling area is newly added. And a reduction next state determination unit to be the spatial state data,
Simulation equipment.
前記空間状態データを取得し、前記複数の物体の内、少なくとも一つを移動させ、移動させた前記物体の配置情報を含む移動後状態データを生成する物体移動部をさらに備え、
前記縮小干渉判定部は、前記移動後状態データおよび前記仮充填領域を示す情報に基づき、前記仮充填領域の外の領域、又は前記仮充填領域と当該外の領域との境界と、少なくとも1つの前記物体とが干渉しているか否かの判定を行い、
前記縮小次状態決定部は、前記縮小干渉判定部が、当該外の領域又は当該境界と、少なくとも1つの前記物体とが干渉していると判定した場合に、前記空間状態データを変更せず、いずれの前記物体も当該外の領域とも当該境界とも干渉していないと判定した場合に、前記仮充填領域を新たな前記充填領域とし、前記新たな充填領域内に配置された前記移動後状態データに基づく前記複数の物体の配置状態を示す情報を新たな前記空間状態データとし、
前記物体移動部、前記仮充填領域定義部、前記縮小干渉判定部、および前記縮小次状態決定部を動作させる状態変更処理が繰り返し行われる、
シミュレーション装置。 In the simulation apparatus according to claim 7,
The apparatus further includes an object moving unit that acquires the spatial state data, moves at least one of the plurality of objects, and generates post-movement state data including arrangement information of the moved object,
The reduced interference determination unit determines at least one of an area outside the temporary filling area or a boundary between the temporary filling area and the area outside the temporary filling area based on the post-movement state data and the information indicating the temporary filling area. Determine whether or not the object interferes with the object;
The reduced next state determination unit does not change the spatial state data when the reduced interference determination unit determines that the region or the boundary outside the region and the at least one object interfere with each other. When it is determined that neither the object nor the region outside the object interfere with the boundary, the temporary filling region is set as the new filling region, and the post-movement state data disposed in the new filling region Information indicating the arrangement state of the plurality of objects based on a new space state data,
State change processing for operating the object moving unit, the temporary filling area definition unit, the reduction interference determination unit, and the reduction next state determination unit is repeatedly performed.
Simulation equipment.
コンピュータを、
有限の体積を有する充填領域内に配置された前記複数の物体の配置状態を示す空間状態データのうち、前記充填領域を示す情報を取得し、前記充填領域を縮小させた仮充填領域を示す情報を生成する仮充填領域定義手段、
前記複数の物体の配置状態を示す情報および前記仮充填領域を示す情報に基づき、前記仮充填領域の外の領域、又は前記仮充填領域と当該外の領域との境界と、少なくとも1つの前記物体とが干渉しているか否かの判定を行う縮小干渉判定手段、および
前記縮小干渉判定手段が、当該外の領域又は当該境界と、少なくとも1つの前記物体とが干渉していると判定した場合に、前記空間状態データを変更せず、いずれの前記物体も当該外の領域とも当該境界とも干渉していないと判定した場合に、前記仮充填領域を新たな前記充填領域とし、前記新たな充填領域内に配置された前記複数の物体の配置状態を示す情報を新たな前記空間状態データとする、縮小次状態決定手段として機能させる、
コンピュータプログラム。 A computer program for realizing a simulation device of a three-dimensional space in which a plurality of objects are arranged,
Computer,
Information indicating the temporary filling area obtained by acquiring the information indicating the filling area from the spatial state data indicating the arrangement state of the plurality of objects arranged in the filling area having a finite volume, and indicating the temporary filling area reduced in the filling area Temporary filling area defining means for generating
An area outside the temporary filling area or a boundary between the temporary filling area and the area outside the temporary filling area based on the information indicating the arrangement state of the plurality of objects and the information indicating the temporary filling area, and at least one object And the reduced interference determination unit determines that the area or the boundary outside the area and the at least one object interfere with each other. When it is determined that the spatial state data is not changed, and it is determined that neither the object nor the region outside the region nor the boundary interfere with the region, the temporary filling region is set as the new filling region, and the new filling region Function as a reduced next state determination unit that sets information indicating the arrangement state of the plurality of objects arranged in the inside as the new space state data,
Computer program.
前記コンピュータを、さらに、
前記空間状態データを取得し、前記複数の物体の内、少なくとも一つを移動させ、移動させた前記物体の配置情報を含む移動後状態データを生成する物体移動手段として機能させ、
前記縮小干渉判定手段は、前記移動後状態データおよび前記仮充填領域を示す情報に基づき、前記仮充填領域の外の領域、又は前記仮充填領域と当該外の領域との境界と、少なくとも1つの前記物体とが干渉しているか否かの判定を行い、
前記縮小次状態決定手段は、前記縮小干渉判定手段が、当該外の領域又は当該境界と、少なくとも1つの前記物体とが干渉していると判定した場合に、前記空間状態データを変更せず、いずれの前記物体も当該外の領域とも当該境界とも干渉していないと判定した場合に、前記仮充填領域を新たな前記充填領域とし、前記新たな充填領域内に配置された前記移動後状態データに基づく前記複数の物体の配置状態を示す情報を新たな前記空間状態データとし、
前記コンピュータに、前記物体移動手段、前記仮充填領域定義手段、前記縮小干渉判定手段、および前記縮小次状態決定手段を動作させる状態変更処理を繰り返し行わせる、
コンピュータプログラム。 In the computer program according to claim 9,
Furthermore, the computer
The spatial state data is acquired, and at least one of the plurality of objects is moved to function as an object moving unit that generates post-movement state data including arrangement information of the moved object,
The reduced interference determination means determines at least one of an area outside the temporary filling area or a boundary between the temporary filling area and the area based on the post-movement state data and the information indicating the temporary filling area. Determine whether or not the object interferes with the object;
The reduced next state determining means does not change the spatial state data when the reduced interference determining means determines that the region or the boundary outside the region and the at least one object interfere with each other. When it is determined that neither the object nor the region outside the object interfere with the boundary, the temporary filling region is set as the new filling region, and the post-movement state data disposed in the new filling region Information indicating the arrangement state of the plurality of objects based on a new space state data,
Allowing the computer to repeatedly perform state change processing for operating the object moving means, the temporary filling area definition means, the reduction interference determination means, and the reduction next state determination means.
Computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015122680A JP6520447B2 (en) | 2015-06-18 | 2015-06-18 | Simulation method, simulation apparatus, and computer program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015122680A JP6520447B2 (en) | 2015-06-18 | 2015-06-18 | Simulation method, simulation apparatus, and computer program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2017010146A JP2017010146A (en) | 2017-01-12 |
JP6520447B2 true JP6520447B2 (en) | 2019-05-29 |
Family
ID=57762508
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2015122680A Active JP6520447B2 (en) | 2015-06-18 | 2015-06-18 | Simulation method, simulation apparatus, and computer program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6520447B2 (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08315181A (en) * | 1995-05-16 | 1996-11-29 | Hitachi Ltd | Method and device for judging collision |
JP2006259910A (en) * | 2005-03-15 | 2006-09-28 | Fuji Xerox Co Ltd | Particle packing simulation device and method, and computer program |
KR101524260B1 (en) * | 2007-07-02 | 2015-05-29 | 마그마 기에세레이테크날로지 게엠베하 | Method and apparatus for describing the statistical orientation distribution of particles in a simulation of a mould filling process |
JP5893333B2 (en) * | 2011-10-20 | 2016-03-23 | キヤノン株式会社 | Particle behavior analysis method, particle behavior analysis apparatus, and analysis program |
JP2014016724A (en) * | 2012-07-06 | 2014-01-30 | Toyota Motor Corp | Packing structure simulation method, packing structure simulation equipment and computer program |
-
2015
- 2015-06-18 JP JP2015122680A patent/JP6520447B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2017010146A (en) | 2017-01-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11301954B2 (en) | Method for detecting collision between cylindrical collider and convex body in real-time virtual scenario, terminal, and storage medium | |
CN106780709B (en) | A kind of method and device of determining global illumination information | |
EP2829993A1 (en) | Design of a path connecting a first point to a second point in a three-dimensional scene | |
KR102042941B1 (en) | Simplification of small mesh components with redundant backs | |
JP5136703B2 (en) | Camera installation position evaluation program, camera installation position evaluation method, and camera installation position evaluation apparatus | |
CN104700352A (en) | Method for generating images for multi-projection theater and image management apparatus using the same | |
JP6281006B1 (en) | Intersection determination program, intersection determination method, and intersection determination apparatus | |
Tu et al. | Research on collision detection algorithm based on AABB-OBB bounding volume | |
JP2007094628A (en) | Polygonization method of implicit function curved surface using particle system | |
JP6540164B2 (en) | Simulation method, simulation apparatus, and computer program | |
JP6852224B2 (en) | Sphere light field rendering method in all viewing angles | |
JP6520447B2 (en) | Simulation method, simulation apparatus, and computer program | |
US20210289187A1 (en) | Apparatus and method for selecting camera providing input images to synthesize virtual view images | |
US12008707B2 (en) | Highly scalable cluster engine for hosting simulations of objects interacting within a space | |
Liu et al. | Influence of computational domain boundaries on internal structure in low-porosity sphere packings | |
JP6500555B2 (en) | Interference determination method, interference determination device, and computer program | |
Nagy et al. | New algorithm to find isoptic surfaces of polyhedral meshes | |
CN104346822B (en) | texture mapping method and device | |
US20110102431A1 (en) | Correction of topology interference for solid objects in a modeling environment | |
WO2010117007A1 (en) | Component data simplification device and component data simplification method | |
JP3904548B2 (en) | Relevance display device, display method, and program | |
CN115115773B (en) | Collision detection method, device, equipment and storage medium | |
JP6429240B2 (en) | Shape detection apparatus, shape detection method, and program | |
An et al. | Collision Detection Technology based on bounding box of Virtual Reality | |
CN114155915A (en) | Method, device, design method and electronic equipment for determining adjacent molecules |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180417 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20190325 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20190402 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190415 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6520447 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |