Hi Abdelghani,
Reading the source code, we can deduce the properties.
I agree that the documentation is too light here.
https://github.com/qgis/QGIS/blob/master/src/3d/symbols/qgspoint3dsymbol.cpp#L172
For a cylinder, the properties are "length", "radius" (default values
are 10).
For a sphere: "radius" (default value is 10).
For a cone: "length" (default value is 10).
For a cube: "size"(default value is 10).
For a torus: "radius" (default value is 10), "minorRadius" (default
value is 5).
For a plane: "size" (default value is 10).
For extruded text: "depth" (default value is 1).
For Model and Billboard: no property.
I only did a "translator" job here :-) and I don't know if the 3D
shapes that are listed make sense for you.
Regards,
Jacky Volpes
Ingénieur SIG - Oslandia
Le 03/06/2024 à 17:33, Abdelghani Tamort via QGIS-Developer a écrit :
Howdy,
I want to know which are the keys of each shape in the
setShapeProperties(/self/, /properties:Dict[str,Any]/) method of
qgis.analysis.Qgis.Point3DShape. It would help me choose a 3d model as
a point symbol.
There is no mention of them in the PyQGIS docs
(https://qgis.org/pyqgis/3.36/_3d/QgsPoint3DSymbol.html#qgis._3d.QgsPoint3DSymbol.shapeProperty)
Cheers,
Abdelghani TAMORT
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info:https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer