How to create any curve like the Markup.redlineItem?

1、The API MarkUp.RedLineItem can draw a redline by draging, why are there not any similar API in the webviewer?

2、How to create a face with hole? Now i can create circle plane and square plane. I want to create a face with hole.

3、In the webviewer API, if there are some api to create curve、line or surface,it will be very helpful and amazing! Please help me !

Thanks a lot !

Three.js, the user can draw some point,line,polyline and face e.g geometry. In the hwv, i can draw nothing but trianguler face.

I try to create a point as follows, but there is nothing in the viewer.

   *const point = \[x,y,z\];*

    *const meshData = new Communicator.MeshData();* 

    *meshData.addPoints(point);*

    *let meshId = await this.\_hwv.model.createMesh(meshData);*

    *const meshInstanceData = new Communicator.MeshInstanceData(meshId);*

    *const finalNodeColor = nodeColor == null ? Communicator.Color.green() : nodeColor;*

    *meshInstanceData.setFaceColor(finalNodeColor);*

    *let nodeElement = this.\_hwv.model.createNode(this.\_hwv.model.getAbsoluteRootNode());*

       *let meshNode = await this.\_hwv.model.createMeshInstance(meshInstanceData, nodeElement);*
  1. The Markup class is largely using an SVG layer to insert addtional geometrical shapes in the scene that already has most of the geometry from the source CAD file. The Web Viewer is just one part of the Visualize Web system:
  • Converter/Authoring: a Stream Cache file is generated from a source CAD file supported by Exchange or authored for proprietary file formats
  • Stream Cache Server: streams the Stream Cache file to a client web browser
  • Web Viewer: the viewer on the client side to interact with the Stream Cache file

Perhaps you can share more about your plans for the Web Viewer which you can send a direct message to me if you wish.

  1. Please see this post in the forum:
    How to describe a surface with an inner hole? - #6 by 820110017

  2. Please refer to the Utils class for additional functionality:
    Utils — HOOPS Visualize Web Documentation