public static final class PartStudiosGetFacesRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
Number |
angleTolerance() |
Get Angle tolerance (in radians).
|
PartStudiosGetFacesRequest.Builder |
angleTolerance(Number value) |
Set Angle tolerance (in radians).
|
PartStudiosGetFacesResponse |
call(OnshapeDocument document) |
Calls getFaces method, Get the tessellated faces of the parts in a Part Studio.
|
PartStudiosGetFacesResponse |
call(String did,
WVM wvmType,
String wvm,
String eid) |
Calls getFaces method, Get the tessellated faces of the parts in a Part Studio.
|
Number |
chordTolerance() |
Get Chord tolerance (in meters).
|
PartStudiosGetFacesRequest.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.
|
PartStudiosGetFacesRequest.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
|
PartStudiosGetFacesRequest.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.
|
PartStudiosGetFacesRequest.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.
|
PartStudiosGetFacesRequest.Builder |
linkDocumentId(String value) |
Set Id of document that links to the document being accessed.
|
Number |
maxFacetWidth() |
Get Max facet width.
|
PartStudiosGetFacesRequest.Builder |
maxFacetWidth(Number value) |
Set Max facet width.
|
Boolean |
outputErrorFaces() |
Get Whether or not to output faces that cause an error
|
PartStudiosGetFacesRequest.Builder |
outputErrorFaces(Boolean value) |
Set Whether or not to output faces that cause an error
|
Boolean |
outputFaceAppearances() |
Get Determines if face appearance data will be included in the output
|
PartStudiosGetFacesRequest.Builder |
outputFaceAppearances(Boolean value) |
Set Determines if face appearance data will be included in the output
|
Boolean |
outputFacetNormals() |
Get Output facet normals
|
PartStudiosGetFacesRequest.Builder |
outputFacetNormals(Boolean value) |
Set Output facet normals
|
Boolean |
outputIndexTable() |
Get Output index table
|
PartStudiosGetFacesRequest.Builder |
outputIndexTable(Boolean value) |
Set Output index table
|
Boolean |
outputSeparateFaceNodes() |
Get Determines if separate nodes will be created for each face or per part.
|
PartStudiosGetFacesRequest.Builder |
outputSeparateFaceNodes(Boolean value) |
Set Determines if separate nodes will be created for each face or per part.
|
Boolean |
outputTextureCoordinates() |
Get Output texture coordinates
|
PartStudiosGetFacesRequest.Builder |
outputTextureCoordinates(Boolean value) |
Set Output texture coordinates
|
Boolean |
outputVertexNormals() |
Get If true, output vertex normals corresponding to surface normals at facet vertex points.
|
PartStudiosGetFacesRequest.Builder |
outputVertexNormals(Boolean value) |
Set If true, output vertex normals corresponding to surface normals at facet vertex points.
|
String |
partId() |
Get IDs of the parts to tessellate (repeat query param to add more than one, i.e.
|
PartStudiosGetFacesRequest.Builder |
partId(String value) |
Set IDs of the parts to tessellate (repeat query param to add more than one, i.e.
|
String |
precomputedLevelOfDetail() |
Get 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.
|
PartStudiosGetFacesRequest.Builder |
precomputedLevelOfDetail(String value) |
Set 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 partId()
public final PartStudiosGetFacesRequest.Builder partId(String value)
value - IDs of the parts to tessellate (repeat query param to add more than one, i.e. partId=JHK&partId=JHD). May not be combined with faceIdpublic final Boolean outputVertexNormals()
public final PartStudiosGetFacesRequest.Builder outputVertexNormals(Boolean value)
value - If true, output vertex normals corresponding to surface normals at facet vertex points.public final Boolean outputFacetNormals()
public final PartStudiosGetFacesRequest.Builder outputFacetNormals(Boolean value)
value - Output facet normalspublic final Boolean outputTextureCoordinates()
public final PartStudiosGetFacesRequest.Builder outputTextureCoordinates(Boolean value)
value - Output texture coordinatespublic final Boolean outputIndexTable()
public final PartStudiosGetFacesRequest.Builder outputIndexTable(Boolean value)
value - Output index tablepublic final Boolean outputErrorFaces()
public final PartStudiosGetFacesRequest.Builder outputErrorFaces(Boolean value)
value - Whether or not to output faces that cause an errorpublic final Number angleTolerance()
public final PartStudiosGetFacesRequest.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 parts being tessellated.public final Number chordTolerance()
public final PartStudiosGetFacesRequest.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 PartStudiosGetFacesRequest.Builder maxFacetWidth(Number value)
value - Max facet width. This specifies the limit on the size of any side of a tessellation facet.public final String faceId()
public final PartStudiosGetFacesRequest.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 String precomputedLevelOfDetail()
public final PartStudiosGetFacesRequest.Builder precomputedLevelOfDetail(String value)
value - 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. The level-of-detail setting entails automatically-set chordal and angular tolerances. Hence any tolerances supplied to this API call will be ignored. Accepts the following values: coarse, medium, finepublic final Boolean outputFaceAppearances()
public final PartStudiosGetFacesRequest.Builder outputFaceAppearances(Boolean value)
value - Determines if face appearance data will be included in the outputpublic final Boolean outputSeparateFaceNodes()
public final PartStudiosGetFacesRequest.Builder outputSeparateFaceNodes(Boolean value)
value - Determines if separate nodes will be created for each face or per part.public final String linkDocumentId()
public final PartStudiosGetFacesRequest.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 configuration()
public final PartStudiosGetFacesRequest.Builder configuration(String value)
value - Configuration stringpublic final String combineCompositePartConstituents()
public final PartStudiosGetFacesRequest.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 PartStudiosGetFacesResponse call(String did, WVM wvmType, String wvm, String eid) throws OnshapeException
did - Document IDwvmType - Type of Workspace, Version or Microversionwvm - Workspace (w), Version (v) or Microversion (m) IDeid - Element IDOnshapeException - On HTTP or serialization errorpublic final PartStudiosGetFacesResponse call(OnshapeDocument document) throws OnshapeException
document - Document object from Onshape URL.OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.