Api session items customgeometries: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/customgeometries/?token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/customgeometries/?token=API_TOKEN</syntaxhighlight>
Example Response:
Example Response:
<syntaxhighlight lang="text" copy>[ ]</syntaxhighlight>
<syntaxhighlight lang="text" copy>[ {
  "absoluteHeight" : false,
  "backFaceCulling" : true,
  "color" : {
    "argb" : -1
  },
  "data" : [ 384.39905, 23.43649, 188.73724, -2.0046892, -0.07102704, 359.73886, 0.0, 178.8694, -1.0016056, 1.1672757, 359.73886, 23.43649, 178.8694, -1.0070654, -0.079785466, -0.3921553, -0.0, 0.91989905, 359.73886, 0.0, 178.8694, -1.0016056, 1.1672757, 384.39905, 23.43649, 188.73724, -2.0046892, -0.07102704, 384.39905, 0.0, 188.73724, -1.9992293, 1.1760347, -0.3921553, -0.0, 0.91989905, 322.61548, 23.43649, 164.01654, -0.0026260836, -0.051694393, 297.94434, 0.0, 154.1445, 1.000817, 1.1866038, 297.94434, 23.43649, 154.1445, 0.9953572, -0.060456038, -0.39215514, -0.0, 0.9198991, 297.94434, 0.0, 154.1445, 1.000817, 1.1866038, 322.61548, 23.43649, 164.01654, -0.0026260836, -0.051694393, 322.61548, 0.0, 164.01654, 0.0028337247, 1.1953661, -0.39215514, -0.0, 0.9198991, 360.23502, 0.0, 242.7595, -1.9873651, 1.1269749, 371.8948, 26.853481, 213.59464, -3.0029876, -0.05718279, 371.8948, 0.0, 213.59464, -2.9829516, 1.1598445, 0.919899, -0.0, 0.3921553, 371.8948, 26.853481, 213.59464, -3.0029876, -0.05718279, 360.23502, 0.0, 242.7595, -1.9873651, 1.1269749, 360.23502, 26.853481, 242.7595, -2.007401, -0.09005213, 0.919899, -0.0, 0.3921553, 352.93378, 0.0, 206.01492, -0.13729228, 1.1083738, 341.274, 26.853481, 235.1798, -1.0150645, 0.08494127, 341.274, 0.0, 235.1798, -0.9977482, 1.1367818, -0.91989905, -0.0, -0.39215526, 341.274, 26.853481, 235.1798, -1.0150645, 0.08494127, 352.93378, 0.0, 206.01492, -0.13729228, 1.1083738, 352.93378, 26.853481, 206.01492, -0.15460865, 0.056533515, -0.91989905, -0.0, -0.39215526, 288.18823, 0.0, 180.72629, -0.1529218, 1.1088898, 276.73734, 26.853481, 209.36882, -1.0154811, 0.08495504, 276.73734, 0.0, 209.36882, -0.9981648, 1.1367955, -0.91989917, -0.0, -0.39215508, 276.73734, 26.853481, 209.36882, -1.0154811, 0.08495504, 288.18823, 0.0, 180.72629, -0.1529218, 1.1088898, 288.18823, 26.853481, 180.72629, -0.17023817, 0.057049513, -0.91989917, -0.0, -0.39215508, 298.50223, 0.0, 218.09178, -1.986883, 1.1269591, 309.968, 26.853481, 189.42148, -2.9849036, -0.05777979, 309.968, 0.0, 189.42148, -2.9648676, 1.1592474, 0.9198991, -0.0, 0.39215514, 309.968, 26.853481, 189.42148, -2.9849036, -0.05777979, 298.50223, 0.0, 218.09178, -1.986883, 1.1269591, 298.50223, 26.853481, 218.09178, -2.0069191, -0.0900681, 0.9198991, -0.0, 0.39215514, 351.94495, 23.43649, 269.90405, 0.6072578, -0.09395826, 322.39883, 0.0, 258.06024, -0.58290905, 1.1635995, 351.94495, 0.0, 269.90405, 0.61271757, 1.1531018, 0.3921553, -0.0, -0.91989905, 322.39883, 0.0, 258.06024, -0.58290905, 1.1635995, 351.5222, 23.43649, 269.70828, 0.5897209, -0.09380424, 322.39883, 23.43649, 258.06024, -0.58836883, -0.083461404, 0.3921553, -0.0, -0.91989905, 351.5222, 23.43649, 269.70828, 0.5897209, -0.09380424, 322.39883, 0.0, 258.06024, -0.58290905, 1.1635995, 351.94495, 23.43649, 269.90405, 0.6072578, -0.09395826, 0.3921553, -0.0, -0.91989905, 295.04025, 23.43649, 247.12312, -1.6949589, -0.073746204, 265.49387, 0.0, 235.3127, -2.8847528, 1.1838096, 295.04025, 0.0, 247.12312, -1.689499, 1.1733153, 0.3921551, -0.0, -0.9198991, 265.49387, 0.0, 235.3127, -2.8847528, 1.1838096, 295.04025, 23.43649, 247.12312, -1.6949589, -0.073746204, 265.49387, 23.43649, 235.3127, -2.8902125, -0.06325269, 0.3921551, -0.0, -0.9198991 ],
  "id" : 0,
  "texture" : "1790067742803.jpg",
  "version" : 3
}, {
  "absoluteHeight" : false,
  "backFaceCulling" : true,
  "color" : {
    "argb" : -1
  },
  "data" : [ 334.52487, 45.6842, 219.70183, 1.0, 1.0, 329.16125, 49.331913, 218.47977, 0.17966947, 0.0, 331.56024, 45.6842, 222.31282, 0.0, 1.0, -0.40642637, 0.7737785, -0.48588523, 329.16125, 49.331913, 218.47977, 0.17966947, 0.0, 334.52487, 45.6842, 219.70183, 1.0, 1.0, 331.06165, 49.331913, 216.79918, 0.82033056, 5.9604645E-8, -0.40642637, 0.7737785, -0.48588523 ],
  "id" : 1,
  "texture" : "1790067742804.jpg",
  "version" : 1
} ]</syntaxhighlight>
==Limit Queries==
==Limit Queries==
Version=100:  
Version=100:  
Line 17: Line 37:
Count:  
Count:  
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/customgeometries/count/?token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/customgeometries/count/?token=API_TOKEN</syntaxhighlight>
Specific Item:  
Specific Item by ID:  
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/customgeometries/{itemID}/?token=API_TOKEN</syntaxhighlight>
<syntaxhighlight lang="text" copy>https://engine.tygron.com/api/session/items/customgeometries/{id}/?token=API_TOKEN</syntaxhighlight>
==Formats==
==Formats==
HTML:  
HTML:  

Latest revision as of 07:25, 5 October 2026

API Endpoint: /api/session/items/customgeometries/

Edit items with events described at Api session event editor customgeometry.

Default Query:

https://engine.tygron.com/api/session/items/customgeometries/?token=API_TOKEN

Example Response:

[ {
  "absoluteHeight" : false,
  "backFaceCulling" : true,
  "color" : {
    "argb" : -1
  },
  "data" : [ 384.39905, 23.43649, 188.73724, -2.0046892, -0.07102704, 359.73886, 0.0, 178.8694, -1.0016056, 1.1672757, 359.73886, 23.43649, 178.8694, -1.0070654, -0.079785466, -0.3921553, -0.0, 0.91989905, 359.73886, 0.0, 178.8694, -1.0016056, 1.1672757, 384.39905, 23.43649, 188.73724, -2.0046892, -0.07102704, 384.39905, 0.0, 188.73724, -1.9992293, 1.1760347, -0.3921553, -0.0, 0.91989905, 322.61548, 23.43649, 164.01654, -0.0026260836, -0.051694393, 297.94434, 0.0, 154.1445, 1.000817, 1.1866038, 297.94434, 23.43649, 154.1445, 0.9953572, -0.060456038, -0.39215514, -0.0, 0.9198991, 297.94434, 0.0, 154.1445, 1.000817, 1.1866038, 322.61548, 23.43649, 164.01654, -0.0026260836, -0.051694393, 322.61548, 0.0, 164.01654, 0.0028337247, 1.1953661, -0.39215514, -0.0, 0.9198991, 360.23502, 0.0, 242.7595, -1.9873651, 1.1269749, 371.8948, 26.853481, 213.59464, -3.0029876, -0.05718279, 371.8948, 0.0, 213.59464, -2.9829516, 1.1598445, 0.919899, -0.0, 0.3921553, 371.8948, 26.853481, 213.59464, -3.0029876, -0.05718279, 360.23502, 0.0, 242.7595, -1.9873651, 1.1269749, 360.23502, 26.853481, 242.7595, -2.007401, -0.09005213, 0.919899, -0.0, 0.3921553, 352.93378, 0.0, 206.01492, -0.13729228, 1.1083738, 341.274, 26.853481, 235.1798, -1.0150645, 0.08494127, 341.274, 0.0, 235.1798, -0.9977482, 1.1367818, -0.91989905, -0.0, -0.39215526, 341.274, 26.853481, 235.1798, -1.0150645, 0.08494127, 352.93378, 0.0, 206.01492, -0.13729228, 1.1083738, 352.93378, 26.853481, 206.01492, -0.15460865, 0.056533515, -0.91989905, -0.0, -0.39215526, 288.18823, 0.0, 180.72629, -0.1529218, 1.1088898, 276.73734, 26.853481, 209.36882, -1.0154811, 0.08495504, 276.73734, 0.0, 209.36882, -0.9981648, 1.1367955, -0.91989917, -0.0, -0.39215508, 276.73734, 26.853481, 209.36882, -1.0154811, 0.08495504, 288.18823, 0.0, 180.72629, -0.1529218, 1.1088898, 288.18823, 26.853481, 180.72629, -0.17023817, 0.057049513, -0.91989917, -0.0, -0.39215508, 298.50223, 0.0, 218.09178, -1.986883, 1.1269591, 309.968, 26.853481, 189.42148, -2.9849036, -0.05777979, 309.968, 0.0, 189.42148, -2.9648676, 1.1592474, 0.9198991, -0.0, 0.39215514, 309.968, 26.853481, 189.42148, -2.9849036, -0.05777979, 298.50223, 0.0, 218.09178, -1.986883, 1.1269591, 298.50223, 26.853481, 218.09178, -2.0069191, -0.0900681, 0.9198991, -0.0, 0.39215514, 351.94495, 23.43649, 269.90405, 0.6072578, -0.09395826, 322.39883, 0.0, 258.06024, -0.58290905, 1.1635995, 351.94495, 0.0, 269.90405, 0.61271757, 1.1531018, 0.3921553, -0.0, -0.91989905, 322.39883, 0.0, 258.06024, -0.58290905, 1.1635995, 351.5222, 23.43649, 269.70828, 0.5897209, -0.09380424, 322.39883, 23.43649, 258.06024, -0.58836883, -0.083461404, 0.3921553, -0.0, -0.91989905, 351.5222, 23.43649, 269.70828, 0.5897209, -0.09380424, 322.39883, 0.0, 258.06024, -0.58290905, 1.1635995, 351.94495, 23.43649, 269.90405, 0.6072578, -0.09395826, 0.3921553, -0.0, -0.91989905, 295.04025, 23.43649, 247.12312, -1.6949589, -0.073746204, 265.49387, 0.0, 235.3127, -2.8847528, 1.1838096, 295.04025, 0.0, 247.12312, -1.689499, 1.1733153, 0.3921551, -0.0, -0.9198991, 265.49387, 0.0, 235.3127, -2.8847528, 1.1838096, 295.04025, 23.43649, 247.12312, -1.6949589, -0.073746204, 265.49387, 23.43649, 235.3127, -2.8902125, -0.06325269, 0.3921551, -0.0, -0.9198991 ],
  "id" : 0,
  "texture" : "1790067742803.jpg",
  "version" : 3
}, {
  "absoluteHeight" : false,
  "backFaceCulling" : true,
  "color" : {
    "argb" : -1
  },
  "data" : [ 334.52487, 45.6842, 219.70183, 1.0, 1.0, 329.16125, 49.331913, 218.47977, 0.17966947, 0.0, 331.56024, 45.6842, 222.31282, 0.0, 1.0, -0.40642637, 0.7737785, -0.48588523, 329.16125, 49.331913, 218.47977, 0.17966947, 0.0, 334.52487, 45.6842, 219.70183, 1.0, 1.0, 331.06165, 49.331913, 216.79918, 0.82033056, 5.9604645E-8, -0.40642637, 0.7737785, -0.48588523 ],
  "id" : 1,
  "texture" : "1790067742804.jpg",
  "version" : 1
} ]

Limit Queries

Version=100:

https://engine.tygron.com/api/session/items/customgeometries/?version=100&token=API_TOKEN

Get Queries

Attributes:

https://engine.tygron.com/api/session/items/customgeometries/attributes/?token=API_TOKEN

Max version:

https://engine.tygron.com/api/session/items/customgeometries/version/?token=API_TOKEN

Count:

https://engine.tygron.com/api/session/items/customgeometries/count/?token=API_TOKEN

Specific Item by ID:

https://engine.tygron.com/api/session/items/customgeometries/{id}/?token=API_TOKEN

Formats

HTML:

https://engine.tygron.com/api/session/items/customgeometries/?f=HTML&token=API_TOKEN

JSON:

https://engine.tygron.com/api/session/items/customgeometries/?f=JSON&token=API_TOKEN

CSV:

https://engine.tygron.com/api/session/items/customgeometries/?f=CSV&token=API_TOKEN

SSV:

https://engine.tygron.com/api/session/items/customgeometries/?f=SSV&token=API_TOKEN

SMILE:

https://engine.tygron.com/api/session/items/customgeometries/?f=SMILE&token=API_TOKEN

ZIPJSON:

https://engine.tygron.com/api/session/items/customgeometries/?f=ZIPJSON&token=API_TOKEN

ZIPSMILE:

https://engine.tygron.com/api/session/items/customgeometries/?f=ZIPSMILE&token=API_TOKEN

Api Model CustomGeometry

API Model description of CustomGeometry

Name Type Description
absoluteHeight boolean
backFaceCulling boolean
color TColor Color
data float[]
id int
texture String
version int

Api Model TColor

API Model description of TColor

Name Type Description