|
2 | 2 | "cells": [
|
3 | 3 | {
|
4 | 4 | "cell_type": "code",
|
5 |
| - "execution_count": 1, |
| 5 | + "execution_count": null, |
6 | 6 | "metadata": {},
|
7 | 7 | "outputs": [],
|
8 | 8 | "source": [
|
|
13 | 13 | },
|
14 | 14 | {
|
15 | 15 | "cell_type": "code",
|
16 |
| - "execution_count": 2, |
| 16 | + "execution_count": null, |
17 | 17 | "metadata": {},
|
18 | 18 | "outputs": [],
|
19 | 19 | "source": [
|
|
25 | 25 | },
|
26 | 26 | {
|
27 | 27 | "cell_type": "code",
|
28 |
| - "execution_count": 3, |
| 28 | + "execution_count": null, |
29 | 29 | "metadata": {},
|
30 | 30 | "outputs": [],
|
31 | 31 | "source": [
|
|
40 | 40 | },
|
41 | 41 | {
|
42 | 42 | "cell_type": "code",
|
43 |
| - "execution_count": 4, |
| 43 | + "execution_count": null, |
44 | 44 | "metadata": {},
|
45 | 45 | "outputs": [],
|
46 | 46 | "source": [
|
47 | 47 | "b.array = [ \n",
|
48 | 48 | " [11, 12, 13],\n",
|
49 |
| - " [21, 00, 23],\n", |
| 49 | + " [21, 0, 23],\n", |
50 | 50 | " [31, 32, 33],\n",
|
51 | 51 | "]"
|
52 | 52 | ]
|
53 | 53 | },
|
54 | 54 | {
|
55 | 55 | "cell_type": "code",
|
56 |
| - "execution_count": 5, |
| 56 | + "execution_count": null, |
57 | 57 | "metadata": {},
|
58 | 58 | "outputs": [],
|
59 | 59 | "source": [
|
|
66 | 66 | },
|
67 | 67 | {
|
68 | 68 | "cell_type": "code",
|
69 |
| - "execution_count": 6, |
| 69 | + "execution_count": null, |
70 | 70 | "metadata": {},
|
71 | 71 | "outputs": [],
|
72 | 72 | "source": [
|
|
77 | 77 | },
|
78 | 78 | {
|
79 | 79 | "cell_type": "code",
|
80 |
| - "execution_count": 7, |
| 80 | + "execution_count": null, |
81 | 81 | "metadata": {},
|
82 | 82 | "outputs": [],
|
83 | 83 | "source": [
|
|
97 | 97 | },
|
98 | 98 | {
|
99 | 99 | "cell_type": "code",
|
100 |
| - "execution_count": 8, |
| 100 | + "execution_count": null, |
101 | 101 | "metadata": {},
|
102 | 102 | "outputs": [],
|
103 | 103 | "source": [
|
|
108 | 108 | },
|
109 | 109 | {
|
110 | 110 | "cell_type": "code",
|
111 |
| - "execution_count": 16, |
| 111 | + "execution_count": null, |
112 | 112 | "metadata": {},
|
113 |
| - "outputs": [ |
114 |
| - { |
115 |
| - "data": { |
116 |
| - "application/vnd.jupyter.widget-view+json": { |
117 |
| - "model_id": "e8e9822fd24d4155b35d135128267f4f", |
118 |
| - "version_major": "2", |
119 |
| - "version_minor": "0" |
120 |
| - }, |
121 |
| - "text/plain": [ |
122 |
| - "A Jupyter Widget" |
123 |
| - ] |
124 |
| - }, |
125 |
| - "metadata": {}, |
126 |
| - "output_type": "display_data" |
127 |
| - } |
128 |
| - ], |
| 113 | + "outputs": [], |
129 | 114 | "source": [
|
130 | 115 | "geometry"
|
131 | 116 | ]
|
132 | 117 | },
|
133 | 118 | {
|
134 | 119 | "cell_type": "code",
|
135 |
| - "execution_count": 13, |
| 120 | + "execution_count": null, |
136 | 121 | "metadata": {},
|
137 | 122 | "outputs": [],
|
138 | 123 | "source": [
|
|
149 | 134 | },
|
150 | 135 | {
|
151 | 136 | "cell_type": "code",
|
152 |
| - "execution_count": 15, |
| 137 | + "execution_count": null, |
153 | 138 | "metadata": {},
|
154 | 139 | "outputs": [],
|
155 | 140 | "source": [
|
156 |
| - "geometry.attributes['position'] = vertices" |
157 |
| - ] |
158 |
| - }, |
159 |
| - { |
160 |
| - "cell_type": "code", |
161 |
| - "execution_count": 19, |
162 |
| - "metadata": {}, |
163 |
| - "outputs": [ |
164 |
| - { |
165 |
| - "data": { |
166 |
| - "text/plain": [ |
167 |
| - "{'position': BufferAttribute(array=array([[-1., -1., 1.],\n", |
168 |
| - " [ 2., -2., 2.],\n", |
169 |
| - " [ 1., 1., 1.],\n", |
170 |
| - " [ 1., 1., 1.],\n", |
171 |
| - " [-1., 1., 1.],\n", |
172 |
| - " [-1., -1., 1.]], dtype=float32), count=6, normalized=False, version=0)}" |
173 |
| - ] |
174 |
| - }, |
175 |
| - "execution_count": 19, |
176 |
| - "metadata": {}, |
177 |
| - "output_type": "execute_result" |
178 |
| - } |
179 |
| - ], |
180 |
| - "source": [ |
181 |
| - "geometry.attributes" |
| 141 | + "vertices.array = np.array([\n", |
| 142 | + " [-1.0, -1.0, 1.0],\n", |
| 143 | + " [ 1.0, -1.0, 1.0],\n", |
| 144 | + " [ 1.0, 1.0, 1.0],\n", |
| 145 | + " \n", |
| 146 | + " [ 1.0, 1.0, 1.0],\n", |
| 147 | + " [-1.0, 1.0, 1.0],\n", |
| 148 | + " [-1.0, -1.0, 1.0],\n", |
| 149 | + " ])" |
182 | 150 | ]
|
183 | 151 | },
|
184 | 152 | {
|
185 | 153 | "cell_type": "code",
|
186 |
| - "execution_count": 23, |
| 154 | + "execution_count": null, |
187 | 155 | "metadata": {},
|
188 |
| - "outputs": [ |
189 |
| - { |
190 |
| - "data": { |
191 |
| - "text/plain": [ |
192 |
| - "\"PlainBufferGeometry(attributes={'position': BufferAttribute(array=array([[-1., -1., 1.],\\n [ 2., -2., 2.],\\n [ 1., 1., 1.],\\n [ 1., 1., 1.],\\n [-1., 1., 1.],\\n [-1., -1., 1.]], dtype=float32), count=6, normalized=False, version=0)}, type='BufferGeometry')\"" |
193 |
| - ] |
194 |
| - }, |
195 |
| - "execution_count": 23, |
196 |
| - "metadata": {}, |
197 |
| - "output_type": "execute_result" |
198 |
| - } |
199 |
| - ], |
| 156 | + "outputs": [], |
200 | 157 | "source": [
|
201 |
| - "repr(geometry)" |
| 158 | + "print(repr(geometry))" |
202 | 159 | ]
|
203 | 160 | },
|
204 | 161 | {
|
|
0 commit comments