60002008 I would like a command to select and hide the edges and faces of the polyface

Article 60002008
Type Wish
Product Engine
Version 6025
Date Added 7/25/2013 12:00:00 AM
Fixed (7/25/2013 12:00:00 AM)
Submitted by Peter Chanios

Summary

I would like a command to select and hide the edges and faces of the polyface

Solution

In version 6026 we added these new commands to the CommandAction object like below

summary> A command to hide edges of a polyface by them altering it's facelist.
param name="Polyface">A vdPolyface object or "USER" , null so the user picks the polyface to the screen.
param name="Edges">An Vectordraw.Geometry.Int32Array of Integers or "USER",null so the user picks the edges to the screen. The indexes of the selected or provided will be altered to the facelist of the polyface to a negative value which makes them invisible.
returns>True if the command was succesfull.
public bool CmdHidePolyfaceEdges(object Polyface, object Edges)
This command is better used in wire rendermodes since in these modes the edges of the polyfaces are better recognised.
summary>A command to remove faces from a polyface.
param name="Polyface">A vdPolyface object or "USER" , null so the user picks the polyface.
param name="Faces">An Int32Array of faces to be removed or "USER" , null so the user picks the faces from the screen.
param name="ClearUnusedVerticies">A boolean value that represents if at the end of the command unused vertexes should be removed from the polyface's vertexlist.
returns>True if the operation was succesfull.
public bool CmdRemovePolyfaceFaces(object Polyface, object Faces, bool ClearUnusedVerticies)

When the user clicks at the polyface , the closest to the screen is selected and highlighted to be removed.
Deselecting with Shift pressed can be used in both commands.

Send comments on this topic.