# When I select a line or a face, how to match the line and face of the original mesh data one by one?

**URL:** <https://forum.techsoft3d.com/t/when-i-select-a-line-or-a-face-how-to-match-the-line-and-face-of-the-original-mesh-data-one-by-one/802>\
**Category:** HOOPS Visualize Web\
**Tags:** code, webviewer\
**Created:** [June 2, 2022, 3:20am UTC](https://forum.techsoft3d.com/t/when-i-select-a-line-or-a-face-how-to-match-the-line-and-face-of-the-original-mesh-data-one-by-one/802 "2022-06-02T03:20:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rui.Zhang03](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@Rui.Zhang03](https://forum.techsoft3d.com/u/Rui.Zhang03)\
**Post date:** [June 2, 2022, 3:20am UTC](https://forum.techsoft3d.com/t/when-i-select-a-line-or-a-face-how-to-match-the-line-and-face-of-the-original-mesh-data-one-by-one/802/1 "2022-06-02T03:20:50Z")

</div>

When I create a mesh object using the interface, how do I get which segment of the mesh object is in the mesh object when I click on one of the segments?  
[https://labs.techsoft3d.com/project/cloud-modeler/](https://labs.techsoft3d.com/project/cloud-modeler/)  
For example, in this project demonstration, if a variable is selected for chamfering, how can we identify which edge corresponds to the original modeled feature?

---

<div class="post-metadata">

**Author:** ![Toshi-TS3D](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/toshi-ts3d/32/885_2.png) [@Toshi-TS3D](https://forum.techsoft3d.com/u/Toshi-TS3D)\
**Post date:** [June 2, 2022, 10:03pm UTC](https://forum.techsoft3d.com/t/when-i-select-a-line-or-a-face-how-to-match-the-line-and-face-of-the-original-mesh-data-one-by-one/802/2 "2022-06-02T22:03:04Z")

</div>

Dear Rui.Zhang03,

I’m Toshiaki Kawabata, a consulting engineer of TS3D.

In the Cloud-modeler demo, I’m creating a mapping object when creating faces and edges meshes.  
i.e.)  
obj = {  
nodeId: xxx (HC mesh instance node ID),  
edgeId: yyy (Parasolid entity ID)  
}

Each Parasolid face and edge entity has unique entity ID.  
Each Parasolid entity is converted to individual face or line mesh instance.  
When creating a mesh instance, the Model.createMeshInctance() API returns created mesh instance node ID.  
Then Parasolid entity ID and HC mesh instance node ID can be mapped.

And then, if a node instance is selected in the HC Web Viewer, I can get the original Parasolid entity ID searching the mapping object array and invoke chamfering in Parasolid.

Please let know if you have any question.

Best regards,  
Toshi
