Browse Source

模型、材质、贴图父类文件修改了cards属性的注释

master
yuanjiajia 3 years ago
parent
commit
3aefdaf08f
  1. 22
      examples/print.php
  2. 2
      src/scene/materials/MaterialsBase.php
  3. 2
      src/scene/objects/Objects.php
  4. 2
      src/scene/texture/TextureBase.php

22
examples/print.php

@ -11,7 +11,7 @@ include dirname(dirname(__FILE__)) . "/vendor/autoload.php";
echo '>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>渲染配置参数>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>'; echo '>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>渲染配置参数>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>';
echo "\n\n\n\n"; echo "\n\n\n\n";
/*
//设置打印 渲染引擎 的配置参数 //设置打印 渲染引擎 的配置参数
$renderEngine = new render\RenderEngine(); $renderEngine = new render\RenderEngine();
echo $renderEngine; echo $renderEngine;
@ -63,7 +63,7 @@ $film->addImage($img);
echo $film; echo $film;
*/
@ -75,11 +75,11 @@ echo "\n\n\n\n";
$scene = new Scene();//创建一个场景, $scene = new Scene();//创建一个场景,
/*
//添加第一个模型
$obj = new objects\Objects( null,[ 'ply' => 'mesh-10086.ply','appliedtransformation' => '1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1' ] ); //创建一个的模型
//添加第一个模型
$obj = new objects\Objects( [ 'ply' => 'mesh-10086.ply','appliedtransformation' => '1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1' ] ); //创建一个的模型
$cloudsMap = new texture\map\Clouds(); //创建一个 Clouds类的贴图对象 $cloudsMap = new texture\map\Clouds(); //创建一个 Clouds类的贴图对象
@ -116,15 +116,15 @@ $obj->setMaterial($mix) ; //为模型的指定一个混合材质
$scene->registerObjects($obj); //将模型添加到场景中 $scene->registerObjects($obj); //将模型添加到场景中
/*
//添加第二个模型
$obj = new objects\Objects( [ 'ply' => 'mesh-119.ply','appliedtransformation' => '1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1' ] ); //创建一个的模型,
$obj->material = new materials\Metal( ['fresnel' => "2517393611944Fresnel"] ); //为模型创建一个 金属 类型的材质
$scene->addObject($obj); //将模型添加到场景中
// //添加第二个模型
// $obj = new objects\Objects( [ 'ply' => 'mesh-119.ply','appliedtransformation' => '1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1' ] ); //创建一个的模型,
// $obj->material = new materials\Metal( ['fresnel' => "2517393611944Fresnel"] ); //为模型创建一个 金属 类型的材质
// $scene->addObject($obj); //将模型添加到场景中
*/
echo $scene; echo $scene;

2
src/scene/materials/MaterialsBase.php

@ -26,7 +26,7 @@ class MaterialsBase extends BaseCfg
public $id; public $id;
/** /**
* @var bool 储存个由Scene类颁发的注册信息
* @var bool TODO:储存个由Scene类颁发的注册信息,后期会屏敝此参数的输出
*/ */
public $cards; public $cards;

2
src/scene/objects/Objects.php

@ -29,7 +29,7 @@ class Objects extends BaseCfg
public $id; public $id;
/** /**
* @var string 储存个由Scene类颁发的注册信息
* @var string TODO:储存个由Scene类颁发的注册信息,后期会屏敝此参数的输出
*/ */
public $cards; public $cards;

2
src/scene/texture/TextureBase.php

@ -18,7 +18,7 @@ class TextureBase extends BaseCfg
public $id; public $id;
/** /**
* @var string 储存个由Scene类颁发的注册信息
* @var string TODO:储存个由Scene类颁发的注册信息,后期会屏敝此参数的输出
*/ */
public $cards; public $cards;

Loading…
Cancel
Save