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!
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().
It does not look like your block models have any polylines when viewed in the Web Viewer:
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.