public static final class PartsGetFacesRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
Number |
angleTolerance() |
Get Angle tolerance (in radians).
|
PartsGetFacesRequest.Builder |
angleTolerance(Number value) |
Set Angle tolerance (in radians).
|
PartsGetFacesResponse |
call(OnshapeDocument document,
String partid) |
Calls getFaces method, Get the tessellated faces of a part.
|
PartsGetFacesResponse |
call(String did,
WVM wvmType,
String wvm,
String eid,
String partid) |
Calls getFaces method, Get the tessellated faces of a part.
|
Number |
chordTolerance() |
Get Chord tolerance (in meters).
|
PartsGetFacesRequest.Builder |
chordTolerance(Number value) |
Set Chord tolerance (in meters).
|
String |
combineCompositePartConstituents() |
Get If true, the geometry belonging to the constituents of composite parts will be combined within the parent composite part, rather than each constituent having its own node in the result.
|
PartsGetFacesRequest.Builder |
combineCompositePartConstituents(String value) |
Set If true, the geometry belonging to the constituents of composite parts will be combined within the parent composite part, rather than each constituent having its own node in the result.
|
String |
configuration() |
Get Configuration string
|
PartsGetFacesRequest.Builder |
configuration(String value) |
Set Configuration string
|
String |
faceId() |
Get IDs of the faces to tessellate (repeat query param to add more than one, i.e.
|
PartsGetFacesRequest.Builder |
faceId(String value) |
Set IDs of the faces to tessellate (repeat query param to add more than one, i.e.
|
String |
linkDocumentId() |
Get Id of document that links to the document being accessed.
|
PartsGetFacesRequest.Builder |
linkDocumentId(String value) |
Set Id of document that links to the document being accessed.
|
Number |
maxFacetWidth() |
Get Max facet width.
|
PartsGetFacesRequest.Builder |
maxFacetWidth(Number value) |
Set Max facet width.
|
Boolean |
outputErrorFaces() |
Get Whether or not to output faces that cause an error
|
PartsGetFacesRequest.Builder |
outputErrorFaces(Boolean value) |
Set Whether or not to output faces that cause an error
|
Boolean |
outputFacetNormals() |
Get Output facet normals
|
PartsGetFacesRequest.Builder |
outputFacetNormals(Boolean value) |
Set Output facet normals
|
Boolean |
outputIndexTable() |
Get Output index table
|
PartsGetFacesRequest.Builder |
outputIndexTable(Boolean value) |
Set Output index table
|
Boolean |
outputTextureCoordinates() |
Get Output texture coordinates
|
PartsGetFacesRequest.Builder |
outputTextureCoordinates(Boolean value) |
Set Output texture coordinates
|
Boolean |
outputVertexNormals() |
Get Output vertex normals
|
PartsGetFacesRequest.Builder |
outputVertexNormals(Boolean value) |
Set Output vertex normals
|
String |
precomputedLevelOfDetail() |
Get medium, fine] If this parameter is specified, the provided level of detail will be retrieved from cache (if available) and used to return the tessellation in a more timely manner.
|
PartsGetFacesRequest.Builder |
precomputedLevelOfDetail(String value) |
Set medium, fine] If this parameter is specified, the provided level of detail will be retrieved from cache (if available) and used to return the tessellation in a more timely manner.
|
public final Number angleTolerance()
public final PartsGetFacesRequest.Builder angleTolerance(Number value)
value - Angle tolerance (in radians). This specifies the limit on the sum of the angular deviations of a tessellation chord from the tangent vectors at two chord endpoints. The specified value must be less than PI/2. This parameter currently has a default value chosen based on the complexity of the part being tessellated.public final Number chordTolerance()
public final PartsGetFacesRequest.Builder chordTolerance(Number value)
value - Chord tolerance (in meters). This specifies the limit on the maximum deviation of a tessellation chord from the true surface/edge. This parameter currently has a default value chosen based on the size and complexity of the parts being tessellated.public final Number maxFacetWidth()
public final PartsGetFacesRequest.Builder maxFacetWidth(Number value)
value - Max facet width. This specifies the limit on the size of any side of a tessellation facet.public final Boolean outputVertexNormals()
public final PartsGetFacesRequest.Builder outputVertexNormals(Boolean value)
value - Output vertex normalspublic final Boolean outputFacetNormals()
public final PartsGetFacesRequest.Builder outputFacetNormals(Boolean value)
value - Output facet normalspublic final Boolean outputTextureCoordinates()
public final PartsGetFacesRequest.Builder outputTextureCoordinates(Boolean value)
value - Output texture coordinatespublic final Boolean outputIndexTable()
public final PartsGetFacesRequest.Builder outputIndexTable(Boolean value)
value - Output index tablepublic final String faceId()
public final PartsGetFacesRequest.Builder faceId(String value)
value - IDs of the faces to tessellate (repeat query param to add more than one, i.e. faceId=JHK&faceId=JHD)public final Boolean outputErrorFaces()
public final PartsGetFacesRequest.Builder outputErrorFaces(Boolean value)
value - Whether or not to output faces that cause an errorpublic final String linkDocumentId()
public final PartsGetFacesRequest.Builder linkDocumentId(String value)
value - Id of document that links to the document being accessed. This may provide additional access rights to the document. Allowed only with version (v) path parameter.public final String precomputedLevelOfDetail()
public final PartsGetFacesRequest.Builder precomputedLevelOfDetail(String value)
value - medium, fine] If this parameter is specified, the provided level of detail will be retrieved from cache (if available) and used to return the tessellation in a more timely manner.public final String configuration()
public final PartsGetFacesRequest.Builder configuration(String value)
value - Configuration stringpublic final String combineCompositePartConstituents()
public final PartsGetFacesRequest.Builder combineCompositePartConstituents(String value)
value - If true, the geometry belonging to the constituents of composite parts will be combined within the parent composite part, rather than each constituent having its own node in the result.public final PartsGetFacesResponse call(String did, WVM wvmType, String wvm, String eid, String partid) throws OnshapeException
did - Document IDwvmType - Type of Workspace, Version or Microversionwvm - Workspace (w), Version (v) or Microversion (m) IDeid - Element IDpartid - Part ID (must be URL encoded)OnshapeException - On HTTP or serialization errorpublic final PartsGetFacesResponse call(OnshapeDocument document, String partid) throws OnshapeException
document - Document object from Onshape URL.partid - Part ID (must be URL encoded)OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.