The Triangle:
var tri:Triangle = new Triangle();
tri.a = new Vertex(0,200,0);
tri.b = new Vertex(100,0,0);
tri.c = new Vertex(-100,0,0);
tri.bothsides = true;
view.scene.addChild(tri);
The Plane:
// white是网格填充色,black是线框颜色
var myPlane:Plane = new Plane({material:"white#black",rotationX:-90});
View.scene.addChild(myPlane);
var mat:WireColorMaterial = new WireColorMaterial();
mat.color = 0xff0000;
mat.wirecolor = 0x000000;
var myPlane:Plane = new Plane();
myPlane.material = mat;
myPlane.rotationX = -90;
View.scene.addChild(myPlane);
// 细节层次
myPlane.segmentsW = 4;
myPlane.segmentsH = 6;
var cPlane:Plane = new Plane({material:cTex,width:200,height:200,bothsides:true,z:0,ownCanvas:true});
cPlane.rotationX = 90;
cPlane.rotationY = 180;
// ownCanvas 为 true 才能使用 blendMode
cPlane.blendMode = BlendMode.MULTIPLY;
View.scene.addChild(cPlane);
The Cube:
cube = new Cube({width:200,height:100,depth:300});
var cube:Cube = new Cube();
cube.width = 200;
cube.height = 100;
cube.depth = 300;
// 更改其中一面的材质,并设置透明度
cube.cubeMaterials.left = new ColorMaterial(0xffffff,{alpha:.3});
分享到:
相关推荐
GlobFit: Consistently Fitting Primitives by Discovering Global Relations
Part 1: Android User Interface Part 2: Intents, ActionBar, and More Part 3: Android Services Part 4: Content Providers Part 5: Lists and Adapters Part 6: Broadcast Receivers Part 7: App Widgets Part 8...
【视频教程】Hands-on Three.js 3D Web Visualisations-September 16, 2019.part2.rar Hands-on Three.js 3D Web Visualisations September 16, 2019 English | MP4 | AVC 1920×1080 | AAC 48KHz 2ch | 3h 46m | ...
are two types of primitives: 3D primitives or solids, and 2D primitives or surfaces. By placing a collection of primitives in the correct location and of the correct size we can create a represent ...
【视频教程】Hands-on Three.js 3D Web Visualisations-September 16, 2019.part1.rar Hands-on Three.js 3D Web Visualisations September 16, 2019 English | MP4 | AVC 1920×1080 | AAC 48KHz 2ch | 3h 46m | ...
第一講:Primitives 第二講:std::allocator 第三講:malloc/free 第四講:loki::allocator 第五講:其他主題 第
用于Unity3D的各种形状的模型,包括棱柱体,半圆柱体,给你的游戏各种想象的空间
1 Introduction to 3D Graphics and OpenGL 2 Using OpenGL 3 Drawing in Space: Geometric Primitives and Buffers 4 Geometric Transformations: The Pipeline 5 Color, Materials, and Lighting: The Basics 6 ...
Integrated Performance Primitives
【视频教程】Hands-on Three.js 3D Web Visualisations-September 16, 2019.part3.rar Hands-on Three.js 3D Web Visualisations September 16, 2019 English | MP4 | AVC 1920×1080 | AAC 48KHz 2ch | 3h 46m | ...
如何下载 Intel Integrated Performance Primitives –intel IPP
intel integrated performance primitives 程序设计,数据类型,基础范例
npm install sync-primitives 原料药 信号 构造函数 number [value = 1] 获得 Object [选择] boolean [blocking = true] boolean [超时= -1] return : Promise. 释放 锁 function fn Object [选择] boolean ...
英文版ARM公司技术资料,讲述ARMv6的同步原语以及如何在ARMv5之前的CPU上通过 SWP 和 SWPB 指令实现同步。
1 Introduction to 3D Graphics and OpenGL 2 Using OpenGL 3 Drawing in Space: Geometric Primitives and Buffers 4 Geometric Transformations: The Pipeline 5 Color, Materials, and Lighting: The Basics 6 ...
如何使用Altera FPGA芯片的内部资源,可以实现芯片内部资源的合理分配。
From geometric primitives to animation to 3D modeling to lighting, shading and texturing, Computer Graphics Through OpenGL®: From Theory to Experiments is a comprehensive introduction to computer ...
Hosting the .NET Composition Primitives 讲述.NET Composition Architecture架构
资源分类:Python库 所属语言:Python 资源全名:nlp_primitives-0.3.0.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059