| Article | 60001932 |
| Type | Wish |
| Product | Engine |
| Date Added | 3/14/2013 12:00:00 AM |
| Fixed | (3/19/2013 12:00:00 AM) |
| Submitted by | Groeneveld Automatisering |
Summary
I would like the cmdCutPolyface command to not leave so many visible lines in wire 2D
Solution
In version 6025 we added the ability to keep the visibility of the faces exactly as the original polyface.
For this we added the following method to the vdPolyface object with a boolean KeepFacesVisibility value as following
summary: Cuts this polyface using the passed vdCurve object.
param name="curve": A vdCurve object to be used in order to cut the polyface. You can use a circle , rect , ellipse , polyline and cut a polyface object.
param name="sideToKeep": A gPoint in WCS that represents the side of the polyface to keep.This point is relative to the vdCurve object.
param name="CreateCoverFaces": A boolean value representing if extra faces will be added in order to cover the cutted edges.
param name="CreatedFacesEdgesVisibility": A boolean value representing the edges visibility of the created cover faces.
param name="KeepFacesVisibility": True if the user wants to keep the faces visibility as the original polyface.
param name="CoverFacesEdgesVisibility": A boolean value that represents the edges visibility of the created cover faces triangles.
returns>True if the command was succesfull.
public bool Cut(vdCurve curve, gPoint sideToKeep, bool CreateCoverFaces, bool CreatedFacesEdgesVisibility, bool KeepFacesVisibility)
We also added another method to the vdCommandAction so this value can be called as following
summary: Changes the passed polyface so it is cut with the passed curve. A point is also asked to determine which part of the polyface will be kept.
param name="polyface": The polyface object to cut OR null , "USER" so the user picks the polyface.
param name="curve": A vdCurve object OR null,"USER" so the user picks the curve.
param name="sideToKeep": A gPoint object or null,"USER" so the user picks a point on the screen. This point represents the side of the polyface that is going to be kept.
param name="CoverFaces": A boolean value OR null,"USER" so the user is prompted for a Yes/No answer. This boolean value represents if cover faces are going to be created where the polyface is going to be cutted.
param name="KeepFacesVisibility": A boolean value OR null , "USER" so the user is prompted for a Yes/No answer. This boolean value represents the visibility of the resulted triangles. True to keep the polyface as the original.
returns>True if the command was succesfull.
public bool CmdCutPolyface(object polyface, object curve, object sideToKeep, object CoverFaces, object KeepFacesVisibility)
By default our command is called with KeepFacesVisibility = true. If you want the result that was previously (with all the triangles visibility) you can call this method and set the last parameter to false.
