我试图将笔画粗细添加到x3dom indexedLineSet。到目前为止,我所能找到的只是x3dom LineProperty。但是建议的linewidthScaleFactor似乎没有效果。
以下是我迄今为止所做的尝试:
<shape render="true" bboxcenter="0,0,0" bboxsize="-1,-1,-1" ispickable="true">
<lineset vertexcount="5" solid="true" ccw="true" usegeocache="true" lit="true">
<coordinate point="-0.5 0.5 0, 0.5 0.5 0, 0.5 -0.5 0, -0.5 -0.5 0, -0.5 0.5 0"></coordinate>
</lineset>
<appearance sorttype="auto" alphaclipthreshold="0.1">
<material emissivecolor="1 1 0" ambientintensity="0.2" diffusecolor="0.8,0.8,0.8" shininess="0.2" specularcolor="0,0,0">
<lineproperties linewidthscalefactor="3" applied="true" linetype="1"></lineproperties>
</material>
</appearance>
</shape>
&#13;