Line Style and Point Size

Hi @JoostGevaert

I’ll try to give a brief explanation for all of these terms:

  • SpeckleMaterials: Are materials that extend regular three.js materials, like MeshStandardMaterial or MeshBasicMaterial and have additional builtin functionality like RTE and batching support
  • RenderMaterial: Is speckle’s material data model. It holds a bunch of properties that can sufficiently describe how materials look. It’s mostly attributed to meshes
  • displayValues: Are objects attached to speckle objects which describe a renderable object. A good example here is a Brep having a Mesh as a display value. It;s not limited to this though. displayValues
    are created by connectors when sending data out
  • DisplayStyle is also a speckle material data model, similar to RenderMaterial, but it’s meant for line based objects.

As for how to change the lineWeights, the displayStyle line’s object needs to have it’s lineWeight property set to an appropriate value. Note that the lineWeight value is expressed world space and the resulting displayed line thickness will never be less than 1px.

Changing point sizes is currently not possible based on data received by connectors. The viewer does support varying point size as show here but this means it will only work in custom web apps for now.

I’m sure @clrkng can make that project public so you can access it,

Cheers

2 Likes