TypeError: Cannot set property 'geometry' of undefined

125 views
Skip to first unread message

Jack Metcalfe

unread,
Aug 7, 2017, 4:01:08 AM8/7/17
to cesium-dev

I am trying to set the colour of an entity using ColorMaterialProperty. However, I am getting the following error: 
TypeError: Cannot set property 'geometry' of undefined TypeError: Cannot set property 'geometry' of undefined at Object.PrimitivePipeline.unpackCombineGeometryParameters (http://localhost:8080/Source/Scene/PrimitivePipeline.js:616:35) at combineGeometry (http://localhost:8080/Source/Workers/combineGeometry.js:11:44) at http://localhost:8080/Source/Workers/createTaskProcessorWorker.js:56:42

Here is an example of some of the code: 

roof_one = entities[3];
roof_one.polygon.material = new Cesium.ColorMaterialProperty(createSampledProperty(0, difference, 1800));


I am using Cesium 1.34, on Mac, on Google Chrome. 

Thanks. 



Rachel Hwang

unread,
Aug 8, 2017, 10:20:16 AM8/8/17
to cesium-dev
Hi there,


Are you sure polygon is defined for entities[3]? I would double check that first.

Hope that helps,
- Rachel
Reply all
Reply to author
Forward
0 new messages