I generated a scz or scs model file, but there are nothing on the mode "wireframe".Why?

HoopsModels.zip (4.1 KB)
the zip file include: scz file 、scs file、 my code

I had created face_element 、polyline_element, point_element.
1、Now i can select the face and the line ,but i can not select the point?
2、under the Draw mode”wireframe”,there are nothing, why ?
Thanks a lot!

Hello,

Below are our response:

  1. Please check that points can be selected via the PickConfig object, for example:
let om = hwv.operatorManager;
let operatorPoint = om.getOperator(Communicator.OperatorId.Select);
let pickConfig = operatorPoint.getPickConfig();
pickConfig.allowPoints=true;

operatorPoint.setPickConfig(pickConfig);

You can then get the PointEntity object through the selection item by calling getPointEntity().

  1. It does not look like your block models have any polylines when viewed in the Web Viewer:

Please check that your code is using valid data for the polyline_elements.

Hello Tino
I have added the lines and points like this:

        scMesh.polyline_elements.emplace_back();
        SC::Store::MeshElement& scEdges = scMesh.polyline_elements.back();
        scEdges.indices.push_back(startIndex);
        scEdges.indices.push_back(endIndex);

        scMesh.point_elements.emplace_back();
        SC::Store::MeshElement scPoint = scMesh.point_elements.back();
        scPoint.indices.push_back(nIndex);

        scModel_.Insert(scMesh);

what’s wrong?
Thanks a lot!

The code itself looks correct but please confirm that the values are expected when looping through the points array.

As a reference, you can take a look at HOOPS_Visualize_Web_2025.X.x\authoring\libsc\examples\authoring_samples.sln and do a search for polyline_elements.

Thanks Tino!

Let me try it!

Best Wishes!

Jenson