35 const char *valueAsString =
"";
36 if (json_object_get_type(js) == json_type_string)
37 valueAsString = json_object_get_string(js);
41 if (strcmp(valueAsString,
"cube-surface") == 0)
42 value = VuoDistribution3d_CubeSurface;
43 else if (strcmp(valueAsString,
"sphere-volume") == 0)
44 value = VuoDistribution3d_SphereVolume;
45 else if (strcmp(valueAsString,
"sphere-surface") == 0)
46 value = VuoDistribution3d_SphereSurface;