You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ai-tools/knowledge/objects.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -299,6 +299,10 @@ A glass with the shape of piecewise defined parametric curve. The `pieces` prope
299
299
300
300
In user provided scene created using the visual editor, this object may appear outside a module, and a similar object with `CustomGlass` type may also be used instead whose equation is defined in a relative coordinate system where `p1` and `p2` are $(-1,0)$ and $(1,0)$, respectively. However, when you write JSON code by yourself, please always use the `ParamGlass` type and put it inside a module.
301
301
302
+
### Cubic Bezier Glass
303
+
304
+
A glass with a shape defined by boundaries composed of cubic Bezier curves. The `points` property is an array of arrays of 2D points with length 3. Point 1 is the first anchor point, points 2 and 3 are the control points, and point 1 of the next curve in the series composing a loop of curves which represents a lens is the second control point of the curve.
Copy file name to clipboardExpand all lines: locales/en/main.json
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,11 @@
119
119
"title": "Parametric Curve",
120
120
"description": "Glass with the shape defined by custom parametric equations."
121
121
},
122
+
"CurveGlass": {
123
+
"title": "Cubic Bezier curves",
124
+
"description": "Glass bounded by cubic Bezier curves.",
125
+
"instruction": "Click to create a segment, click on the starting point when finish drawing. Click and drag the boxes to manipulate the control points, changing the curve."
126
+
},
122
127
"CircleGrinGlass": {
123
128
"title": "GRIN Circle",
124
129
"description": "Glass with a custom refractive index function n(x,y) and a circular boundary."
@@ -133,6 +138,11 @@
133
138
"title": "GRIN Parametric Curve",
134
139
"description": "Gradient-index glass with boundary defined by custom parametric equations."
135
140
},
141
+
"CurveGrinGlass": {
142
+
"title": "GRIN Cubic Bezier curves",
143
+
"description": "Gradient-index glass bounded by cubic Bezier curves.",
144
+
"instruction": "Click to create a segment, click on the starting point when finish drawing. Click and drag the boxes to manipulate the control points, changing the curve."
145
+
},
136
146
"otherGrinGlass": {
137
147
"title": "Gradient-index glass",
138
148
"description": "Material with a custom refractive index function n(x,y)."
Copy file name to clipboardExpand all lines: locales/en/simulator.json
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -210,6 +210,14 @@
210
210
"notPositivelyOriented": "Curve is not positively oriented."
211
211
}
212
212
},
213
+
"CurveGlass": {
214
+
"refIndex": "Refractive index",
215
+
"refIndexInfo": {
216
+
"relative": "Relative if inside another glass",
217
+
"effective": "If this object is to be simulated with (absolute) refractive index n₁, but is placed inside another glass with refractive index n₀, then you should set the refractive index to n₁/n₀ here. In more complicated cases that several glasses overlap together, the effective refractive index of the overlapping region equals the product of the refractive indices of individual ones."
218
+
},
219
+
"cauchyCoeff": "Cauchy coefficient"
220
+
},
213
221
"BaseGrinGlass": {
214
222
"refIndexFnInfo": {
215
223
"lambda": "To simulate chromatic dispersion, use parameter {{lambda}} for the vacuum wavelength in nanometers.",
@@ -248,6 +256,12 @@
248
256
"functions": "This numerical tolerance is used in the function 'isOnBoundary' inside the 'ParamCurveObjMixin.js' file."
249
257
}
250
258
},
259
+
"CurveGrinGlass": {
260
+
"epsInfo": {
261
+
"units": "Units - [length].",
262
+
"functions": "This numerical tolerance is used in the function 'isOnBoundary' inside the 'ParamCurveObjMixin.js' file."
0 commit comments