fFacevsFaceD.dfm 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. object FormFacevsFace: TFormFacevsFace
  2. Left = 322
  3. Top = 162
  4. Margins.Left = 5
  5. Margins.Top = 5
  6. Margins.Right = 5
  7. Margins.Bottom = 5
  8. BorderWidth = 3
  9. Caption = 'Face vs Face'
  10. ClientHeight = 977
  11. ClientWidth = 1409
  12. Color = clBtnFace
  13. Font.Charset = DEFAULT_CHARSET
  14. Font.Color = clWindowText
  15. Font.Height = -19
  16. Font.Name = 'MS Sans Serif'
  17. Font.Style = []
  18. Position = poScreenCenter
  19. OnCreate = FormCreate
  20. OnMouseWheel = FormMouseWheel
  21. OnShow = FormShow
  22. PixelsPerInch = 168
  23. TextHeight = 24
  24. object Splitter1: TSplitter
  25. Left = 1201
  26. Top = 0
  27. Width = 7
  28. Height = 711
  29. Margins.Left = 5
  30. Margins.Top = 5
  31. Margins.Right = 5
  32. Margins.Bottom = 5
  33. Align = alRight
  34. MinSize = 53
  35. end
  36. object GLSceneViewer1: TGLSceneViewer
  37. Left = 212
  38. Top = 0
  39. Width = 989
  40. Height = 711
  41. Margins.Left = 5
  42. Margins.Top = 5
  43. Margins.Right = 5
  44. Margins.Bottom = 5
  45. Camera = GLCamera2
  46. Buffer.BackgroundColor = 8404992
  47. FieldOfView = 83.258186340332030000
  48. PenAsTouch = False
  49. Align = alClient
  50. OnMouseDown = GLSceneViewer1MouseDown
  51. OnMouseMove = GLSceneViewer1MouseMove
  52. TabOrder = 0
  53. end
  54. object Panel1: TPanel
  55. Left = 0
  56. Top = 0
  57. Width = 212
  58. Height = 711
  59. Margins.Left = 5
  60. Margins.Top = 5
  61. Margins.Right = 5
  62. Margins.Bottom = 5
  63. Align = alLeft
  64. BevelOuter = bvLowered
  65. TabOrder = 1
  66. object Shape1: TShape
  67. Left = 154
  68. Top = 18
  69. Width = 44
  70. Height = 43
  71. Margins.Left = 5
  72. Margins.Top = 5
  73. Margins.Right = 5
  74. Margins.Bottom = 5
  75. Pen.Width = 2
  76. Shape = stCircle
  77. end
  78. object Label1: TLabel
  79. Left = 14
  80. Top = 14
  81. Width = 109
  82. Height = 24
  83. Margins.Left = 5
  84. Margins.Top = 5
  85. Margins.Right = 5
  86. Margins.Bottom = 5
  87. Caption = 'Collision test:'
  88. end
  89. object LATime: TLabel
  90. Left = 14
  91. Top = 42
  92. Width = 128
  93. Height = 23
  94. Margins.Left = 5
  95. Margins.Top = 5
  96. Margins.Right = 5
  97. Margins.Bottom = 5
  98. Alignment = taRightJustify
  99. AutoSize = False
  100. Caption = 'LATime'
  101. end
  102. object Label2: TLabel
  103. Left = 14
  104. Top = 168
  105. Width = 186
  106. Height = 24
  107. Margins.Left = 5
  108. Margins.Top = 5
  109. Margins.Right = 5
  110. Margins.Bottom = 5
  111. Caption = 'Teapot collision mode'
  112. end
  113. object cbCollisionMode: TRadioGroup
  114. Left = 14
  115. Top = 196
  116. Width = 184
  117. Height = 184
  118. Margins.Left = 5
  119. Margins.Top = 5
  120. Margins.Right = 5
  121. Margins.Bottom = 5
  122. ItemIndex = 4
  123. Items.Strings = (
  124. 'cbmPoint'
  125. 'cbmSphere'
  126. 'cbmEllipsoid'
  127. 'cbmCube'
  128. 'cbmFaces')
  129. TabOrder = 0
  130. OnClick = cbCollisionModeClick
  131. end
  132. end
  133. object Panel2: TPanel
  134. Left = 0
  135. Top = 711
  136. Width = 1409
  137. Height = 266
  138. Margins.Left = 5
  139. Margins.Top = 5
  140. Margins.Right = 5
  141. Margins.Bottom = 5
  142. Align = alBottom
  143. TabOrder = 2
  144. object StringGrid1: TStringGrid
  145. Left = 1
  146. Top = 1
  147. Width = 1407
  148. Height = 264
  149. Margins.Left = 5
  150. Margins.Top = 5
  151. Margins.Right = 5
  152. Margins.Bottom = 5
  153. Align = alClient
  154. ColCount = 6
  155. DefaultColWidth = 158
  156. DefaultRowHeight = 35
  157. RowCount = 6
  158. TabOrder = 0
  159. ColWidths = (
  160. 158
  161. 158
  162. 158
  163. 158
  164. 158
  165. 158)
  166. RowHeights = (
  167. 35
  168. 35
  169. 35
  170. 35
  171. 35
  172. 35)
  173. end
  174. end
  175. object Memo1: TMemo
  176. Left = 1208
  177. Top = 0
  178. Width = 201
  179. Height = 711
  180. Margins.Left = 5
  181. Margins.Top = 5
  182. Margins.Right = 5
  183. Margins.Bottom = 5
  184. Align = alRight
  185. Lines.Strings = (
  186. 'Memo1')
  187. TabOrder = 3
  188. end
  189. object GLScene1: TGLScene
  190. Left = 184
  191. Top = 8
  192. object GLLightSource1: TGLLightSource
  193. ConstAttenuation = 1.000000000000000000
  194. Position.Coordinates = {0000204100002041000020410000803F}
  195. SpotCutOff = 180.000000000000000000
  196. end
  197. object GLLightSource2: TGLLightSource
  198. ConstAttenuation = 1.000000000000000000
  199. Position.Coordinates = {000020C100002041000020C10000803F}
  200. SpotCutOff = 180.000000000000000000
  201. end
  202. object DummyCube1: TGLDummyCube
  203. ShowAxes = True
  204. CubeSize = 1.000000000000000000
  205. EdgeColor.Color = {0000003F0000003F0000003F0000803F}
  206. object GLCamera2: TGLCamera
  207. DepthOfView = 1000.000000000000000000
  208. FocalLength = 400.000000000000000000
  209. TargetObject = DummyCube1
  210. Position.Coordinates = {0000704100002041000070410000803F}
  211. end
  212. object txtX: TGLSpaceText
  213. Position.Coordinates = {0000004000000000000000000000803F}
  214. Scale.Coordinates = {0000003F0000003F0000003F00000000}
  215. Extrusion = 0.100000001490116100
  216. Font.Charset = DEFAULT_CHARSET
  217. Font.Color = clWindowText
  218. Font.Height = -11
  219. Font.Name = 'Arial'
  220. Font.Style = []
  221. Lines.Strings = (
  222. 'X')
  223. end
  224. object txtY: TGLSpaceText
  225. Position.Coordinates = {0000000000000040000000000000803F}
  226. Scale.Coordinates = {0000003F0000003F0000003F00000000}
  227. Extrusion = 0.100000001490116100
  228. Font.Charset = DEFAULT_CHARSET
  229. Font.Color = clWindowText
  230. Font.Height = -11
  231. Font.Name = 'Arial'
  232. Font.Style = []
  233. Lines.Strings = (
  234. 'Y')
  235. end
  236. object txtZ: TGLSpaceText
  237. Position.Coordinates = {0000000000000000000000400000803F}
  238. Scale.Coordinates = {0000003F0000003F0000003F00000000}
  239. Extrusion = 0.100000001490116100
  240. Font.Charset = DEFAULT_CHARSET
  241. Font.Color = clWindowText
  242. Font.Height = -11
  243. Font.Name = 'Arial'
  244. Font.Style = []
  245. Lines.Strings = (
  246. 'Z')
  247. end
  248. object Teapot1: TGLFreeForm
  249. Direction.Coordinates = {613D73BDD128723F4D43A3BE00000000}
  250. Position.Coordinates = {00000000000000003333B33E0000803F}
  251. Scale.Coordinates = {0AD7233C0AD7233C0AD7233C00000000}
  252. Up.Coordinates = {C9B14FBFC3BE0F3ED548113F00000000}
  253. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  254. BehavioursData = {
  255. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  256. 0002000611436F6C6C6973696F6E4D616E616765723102040200}
  257. end
  258. object Teapot2: TGLFreeForm
  259. Direction.Coordinates = {0DFB4AB20000803F7A829A3200000000}
  260. Position.Coordinates = {0000000000000000CDCCCCBE0000803F}
  261. Scale.Coordinates = {0AD7233C0AD7233C0AD7233C00000000}
  262. Up.Coordinates = {F30435BFD41F8BB3F30435BF00000000}
  263. AutoCentering = [macCenterX, macCenterY, macCenterZ]
  264. BehavioursData = {
  265. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  266. 0002000611436F6C6C6973696F6E4D616E616765723102040200}
  267. end
  268. object CubePoint1: TGLCube
  269. Position.Coordinates = {000000000000803F000000000000803F}
  270. BehavioursData = {
  271. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  272. 0002000611436F6C6C6973696F6E4D616E616765723102000200}
  273. CubeSize = {CDCC4C3DCDCC4C3DCDCC4C3D}
  274. end
  275. object CubePoint2: TGLCube
  276. Position.Coordinates = {CDCC4CBE0000803F000000000000803F}
  277. Scale.Coordinates = {CDCC4C3DCDCC4C3DCDCC4C3D00000000}
  278. BehavioursData = {
  279. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  280. 0002000611436F6C6C6973696F6E4D616E616765723102000200}
  281. end
  282. object Cube2: TGLCube
  283. Material.BackProperties.Ambient.Color = {CDCC4C3ECDCC4C3ECDCC4C3E0000003F}
  284. Material.BackProperties.Diffuse.Color = {CDCC4C3FCDCC4C3FCDCC4C3F0000003F}
  285. Material.BackProperties.Emission.Color = {0000000000000000000000000000003F}
  286. Material.BackProperties.Specular.Color = {0000000000000000000000000000003F}
  287. Material.FrontProperties.Ambient.Color = {CDCC4C3ECDCC4C3ECDCC4C3ECDCC4C3E}
  288. Material.FrontProperties.Diffuse.Color = {CDCC4C3FCDCC4C3FCDCC4C3F0000003F}
  289. Material.FrontProperties.Emission.Color = {0000000000000000000000000000003F}
  290. Material.BlendingMode = bmTransparency
  291. Position.Coordinates = {0000803F00000000000080BF0000803F}
  292. Scale.Coordinates = {0000803F000000400000803F00000000}
  293. BehavioursData = {
  294. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  295. 0002000611436F6C6C6973696F6E4D616E616765723102030200}
  296. CubeSize = {0000803F0000803F0000003F}
  297. end
  298. object Bar: TGLCube
  299. Material.FrontProperties.Diffuse.Color = {0000803F5839343E5839343E0000803F}
  300. Position.Coordinates = {0000803F000000000000803F0000803F}
  301. BehavioursData = {
  302. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  303. 0002000611436F6C6C6973696F6E4D616E616765723102030200}
  304. CubeSize = {CDCC4C3DCDCC4C3D00000040}
  305. end
  306. object GLSphere1: TGLSphere
  307. Position.Coordinates = {000000C000000000000000000000803F}
  308. Radius = 0.500000000000000000
  309. BehavioursData = {
  310. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  311. 0002000611436F6C6C6973696F6E4D616E616765723102010200}
  312. end
  313. object GLSphere2: TGLSphere
  314. Position.Coordinates = {000000C000000000000080BF0000803F}
  315. Scale.Coordinates = {CDCC4C3FCDCC4C3FCDCC4C3F00000000}
  316. Radius = 0.300000011920929000
  317. BehavioursData = {
  318. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  319. 0002000611436F6C6C6973696F6E4D616E616765723102010200}
  320. end
  321. object GLSphereEllipsoid1: TGLSphere
  322. Position.Coordinates = {000080BF00000000000000C00000803F}
  323. Scale.Coordinates = {9A99193F0000803F0000803F00000000}
  324. Radius = 0.500000000000000000
  325. BehavioursData = {
  326. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  327. 0002000611436F6C6C6973696F6E4D616E616765723102020200}
  328. end
  329. object GLSphereEllipsoid2: TGLSphere
  330. Position.Coordinates = {0000000000000000000000C00000803F}
  331. Scale.Coordinates = {CDCC4C3FCDCCCC3F3333333F00000000}
  332. Radius = 0.300000011920929000
  333. BehavioursData = {
  334. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  335. 0002000611436F6C6C6973696F6E4D616E616765723102020200}
  336. end
  337. object GLCube1: TGLCube
  338. Position.Coordinates = {0000803F000080BF000000000000803F}
  339. Scale.Coordinates = {3333333F3333B33F0000803F00000000}
  340. BehavioursData = {
  341. 0458434F4C02010201060D54474C42436F6C6C6973696F6E0202020012000000
  342. 0002000611436F6C6C6973696F6E4D616E616765723102030200}
  343. CubeSize = {0000803F0000803F6666A63F}
  344. end
  345. end
  346. object GLCamera1: TGLCamera
  347. DepthOfView = 100.000000000000000000
  348. FocalLength = 50.000000000000000000
  349. end
  350. object GLCamera3: TGLCamera
  351. DepthOfView = 100.000000000000000000
  352. FocalLength = 50.000000000000000000
  353. end
  354. end
  355. object Timer1: TTimer
  356. Interval = 100
  357. OnTimer = Timer1Timer
  358. Left = 224
  359. Top = 8
  360. end
  361. object CollisionManager1: TGLCollisionManager
  362. OnCollision = CollisionManager1Collision
  363. Left = 136
  364. Top = 8
  365. end
  366. end