#include <hps.h>
Public Member Functions | |
ShellKey () | |
ShellKey (Key const &in_that) | |
ShellKey (ShellKey const &in_that) | |
ShellKey & | operator= (ShellKey const &other) |
ShellKey (ShellKey &&in_that) | |
ShellKey & | operator= (ShellKey &&in_that) |
HPS::Type | ObjectType () const |
void | Consume (ShellKit &in_kit) |
void | Set (ShellKit const &in_kit) |
void | Show (ShellKit &out_kit) const |
size_t | GetPointCount () const |
size_t | GetFaceCount () const |
ShellKey & | SetPoints (PointArray const &in_points) |
ShellKey & | SetPoints (size_t in_count, Point const in_points[]) |
ShellKey & | SetFacelist (IntArray const &in_facelist) |
ShellKey & | SetFacelist (size_t in_count, int const in_facelist[]) |
ShellKey & | SetTristrips (IntArray const &in_tristrips) |
ShellKey & | SetTristrips (size_t in_count, int const in_tristrips[]) |
ShellKey & | SetMaterialMapping (MaterialMappingKit const &in_kit) |
ShellKey & | UnsetPoints () |
ShellKey & | UnsetFacelist () |
ShellKey & | UnsetTristrips () |
ShellKey & | UnsetMaterialMapping () |
ShellKey & | UnsetEverything () |
bool | ShowPoints (PointArray &out_points) const |
bool | ShowPointsByRange (size_t in_start_index, size_t in_count, PointArray &out_points) const |
bool | ShowPointsByList (SizeTArray const &in_indices, PointArray &out_points) const |
bool | ShowPointsByList (size_t in_count, size_t const in_indices[], PointArray &out_points) const |
bool | ShowFacelist (IntArray &out_facelist) const |
bool | ShowTristrips (IntArray &out_tristrips) const |
bool | ShowMaterialMapping (MaterialMappingKit &out_kit) const |
ShellKey & | SetVertexRGBColorsByRange (size_t in_start, size_t in_count, RGBColor const in_rgb_colors[], Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexRGBColorsByRange (size_t in_start, RGBColorArray const &in_rgb_colors, Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexRGBColorsByRange (size_t in_start, size_t in_count, RGBColor const &in_rgb_color, Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexRGBColorsByList (size_t in_count, size_t const in_vertices[], RGBColor const in_rgb_colors[], Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexRGBColorsByList (SizeTArray const &in_vertices, RGBColorArray const &in_rgb_colors, Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexRGBColorsByList (size_t in_count, size_t const in_vertices[], RGBColor const &in_rgb_color, Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexRGBColorsByList (SizeTArray const &in_vertices, RGBColor const &in_rgb_color, Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexRGBAColorsByRange (size_t in_start, size_t in_count, RGBAColor const in_rgba_colors[], Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexRGBAColorsByRange (size_t in_start, RGBAColorArray const &in_rgba_colors, Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexRGBAColorsByRange (size_t in_start, size_t in_count, RGBAColor const &in_rgba_color, Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexRGBAColorsByList (size_t in_count, size_t const in_vertices[], RGBAColor const in_rgba_colors[], Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexRGBAColorsByList (SizeTArray const &in_vertices, RGBAColorArray const &in_rgba_colors, Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexRGBAColorsByList (size_t in_count, size_t const in_vertices[], RGBAColor const &in_rgba_color, Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexRGBAColorsByList (SizeTArray const &in_vertices, RGBAColor const &in_rgba_color, Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexIndexColorsByRange (size_t in_start, size_t in_count, float const in_indices[], Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexIndexColorsByRange (size_t in_start, FloatArray const &in_indices, Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexIndexColorsByRange (size_t in_start, size_t in_count, float in_index, Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexIndexColorsByList (size_t in_count, size_t const in_vertices[], float const in_indices[], Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexIndexColorsByList (SizeTArray const &in_vertices, FloatArray const &in_indices, Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexIndexColorsByList (size_t in_count, size_t const in_vertices[], float in_index, Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexIndexColorsByList (SizeTArray const &in_vertices, float in_index, Shell::Component in_apply_to=Shell::Component::Faces) |
ShellKey & | SetVertexNormalsByRange (size_t in_start, size_t in_count, Vector const in_normals[]) |
ShellKey & | SetVertexNormalsByRange (size_t in_start, VectorArray const &in_normals) |
ShellKey & | SetVertexNormalsByRange (size_t in_start, size_t in_count, Vector const &in_normal) |
ShellKey & | SetVertexNormalsByList (size_t in_count, size_t const in_vertices[], Vector const in_normals[]) |
ShellKey & | SetVertexNormalsByList (SizeTArray const &in_vertices, VectorArray const &in_normals) |
ShellKey & | SetVertexNormalsByList (size_t in_count, size_t const in_vertices[], Vector const &in_normal) |
ShellKey & | SetVertexNormalsByList (SizeTArray const &in_vertices, Vector const &in_normal) |
ShellKey & | SetVertexParametersByRange (size_t in_start, size_t in_param_count, float const in_params[], size_t in_param_width=2) |
ShellKey & | SetVertexParametersByRange (size_t in_start, FloatArray const &in_params, size_t in_param_width=2) |
ShellKey & | SetVertexParametersByList (size_t in_vertex_count, size_t const in_vertices[], size_t in_param_count, float const in_params[], size_t in_param_width=2) |
ShellKey & | SetVertexParametersByList (SizeTArray const &in_vertices, FloatArray const &in_params, size_t in_param_width=2) |
ShellKey & | SetVertexVisibilitiesByRange (size_t in_start, size_t in_count, bool const in_visibilities[]) |
ShellKey & | SetVertexVisibilitiesByRange (size_t in_start, BoolArray const &in_visibilities) |
ShellKey & | SetVertexVisibilitiesByRange (size_t in_start, size_t in_count, bool in_visibility) |
ShellKey & | SetVertexVisibilitiesByList (size_t in_count, size_t const in_vertices[], bool const in_visibilities[]) |
ShellKey & | SetVertexVisibilitiesByList (SizeTArray const &in_vertices, BoolArray const &in_visibilities) |
ShellKey & | SetVertexVisibilitiesByList (size_t in_count, size_t const in_vertices[], bool in_visibility) |
ShellKey & | SetVertexVisibilitiesByList (SizeTArray const &in_vertices, bool in_visibility) |
ShellKey & | UnsetVertexColors () |
ShellKey & | UnsetVertexColorsByRange (size_t in_start, size_t in_count) |
ShellKey & | UnsetVertexColorsByList (SizeTArray const &in_vertices) |
ShellKey & | UnsetVertexColors (Shell::Component in_apply_to) |
ShellKey & | UnsetVertexColorsByRange (size_t in_start, size_t in_count, Shell::Component in_apply_to) |
ShellKey & | UnsetVertexColorsByList (SizeTArray const &in_vertices, Shell::Component in_apply_to) |
ShellKey & | UnsetVertexNormals () |
ShellKey & | UnsetVertexNormalsByRange (size_t in_start, size_t in_count) |
ShellKey & | UnsetVertexNormalsByList (SizeTArray const &in_vertices) |
ShellKey & | UnsetVertexParameters () |
ShellKey & | UnsetVertexParametersByRange (size_t in_start, size_t in_count) |
ShellKey & | UnsetVertexParametersByList (SizeTArray const &in_vertices) |
ShellKey & | UnsetVertexVisibilities () |
ShellKey & | UnsetVertexVisibilitiesByRange (size_t in_start, size_t in_count) |
ShellKey & | UnsetVertexVisibilitiesByList (SizeTArray const &in_vertices) |
ShellKey & | UnsetVertexEverything () |
bool | ShowVertexColorsByRange (size_t in_start, size_t in_count, Shell::Component in_applied_to, MaterialTypeArray &out_types, RGBColorArray &out_rgb_colors, RGBAColorArray &out_rgba_colors, FloatArray &out_indices) const |
bool | ShowVertexColorsByList (SizeTArray const &in_vertices, Shell::Component in_applied_to, MaterialTypeArray &out_types, RGBColorArray &out_rgb_colors, RGBAColorArray &out_rgba_colors, FloatArray &out_indices) const |
bool | ShowVertexNormalsByRange (size_t in_start, size_t in_count, BoolArray &out_validities, VectorArray &out_normals) const |
bool | ShowVertexNormalsByList (SizeTArray const &in_vertices, BoolArray &out_validities, VectorArray &out_normals) const |
bool | ShowVertexParametersByRange (size_t in_start, size_t in_count, BoolArray &out_validities, FloatArray &out_params) const |
bool | ShowVertexParametersByRange (size_t in_start, size_t in_count, BoolArray &out_validities, FloatArray &out_params, size_t &out_param_width) const |
bool | ShowVertexParametersByList (SizeTArray const &in_vertices, BoolArray &out_validities, FloatArray &out_params) const |
bool | ShowVertexParametersByList (SizeTArray const &in_vertices, BoolArray &out_validities, FloatArray &out_params, size_t &out_param_width) const |
bool | ShowVertexVisibilitiesByRange (size_t in_start, size_t in_count, BoolArray &out_validities, BoolArray &out_visibilities) const |
bool | ShowVertexVisibilitiesByList (SizeTArray const &in_vertices, BoolArray &out_validities, BoolArray &out_visibilities) const |
ShellKey & | SetFaceRGBColorsByRange (size_t in_start, size_t in_count, RGBColor const in_rgb_colors[]) |
ShellKey & | SetFaceRGBColorsByRange (size_t in_start, RGBColorArray const &in_rgb_colors) |
ShellKey & | SetFaceRGBColorsByRange (size_t in_start, size_t in_count, RGBColor const &in_rgb_color) |
ShellKey & | SetFaceRGBColorsByList (size_t in_count, size_t const in_faces[], RGBColor const in_rgb_colors[]) |
ShellKey & | SetFaceRGBColorsByList (SizeTArray const &in_faces, RGBColorArray const &in_rgb_colors) |
ShellKey & | SetFaceRGBColorsByList (size_t in_count, size_t const in_faces[], RGBColor const &in_rgb_color) |
ShellKey & | SetFaceRGBColorsByList (SizeTArray const &in_faces, RGBColor const &in_rgb_color) |
ShellKey & | SetFaceIndexColorsByRange (size_t in_start, size_t in_count, float const in_indices[]) |
ShellKey & | SetFaceIndexColorsByRange (size_t in_start, FloatArray const &in_indices) |
ShellKey & | SetFaceIndexColorsByRange (size_t in_start, size_t in_count, float in_index) |
ShellKey & | SetFaceIndexColorsByList (size_t in_count, size_t const in_faces[], float const in_indices[]) |
ShellKey & | SetFaceIndexColorsByList (SizeTArray const &in_faces, FloatArray const &in_indices) |
ShellKey & | SetFaceIndexColorsByList (size_t in_count, size_t const in_faces[], float in_index) |
ShellKey & | SetFaceIndexColorsByList (SizeTArray const &in_faces, float in_index) |
ShellKey & | SetFaceNormalsByRange (size_t in_start, size_t in_count, Vector const in_normals[]) |
ShellKey & | SetFaceNormalsByRange (size_t in_start, VectorArray const &in_normals) |
ShellKey & | SetFaceNormalsByRange (size_t in_start, size_t in_count, Vector const &in_normal) |
ShellKey & | SetFaceNormalsByList (size_t in_count, size_t const in_faces[], Vector const in_normals[]) |
ShellKey & | SetFaceNormalsByList (SizeTArray const &in_faces, VectorArray const &in_normals) |
ShellKey & | SetFaceNormalsByList (size_t in_count, size_t const in_faces[], Vector const &in_normal) |
ShellKey & | SetFaceNormalsByList (SizeTArray const &in_faces, Vector const &in_normal) |
ShellKey & | SetFaceVisibilitiesByRange (size_t in_start, size_t in_count, bool const in_visibilities[]) |
ShellKey & | SetFaceVisibilitiesByRange (size_t in_start, BoolArray const &in_visibilities) |
ShellKey & | SetFaceVisibilitiesByRange (size_t in_start, size_t in_count, bool in_visibility) |
ShellKey & | SetFaceVisibilitiesByList (size_t in_count, size_t const in_faces[], bool const in_visibilities[]) |
ShellKey & | SetFaceVisibilitiesByList (SizeTArray const &in_faces, BoolArray const &in_visibilities) |
ShellKey & | SetFaceVisibilitiesByList (size_t in_count, size_t const in_faces[], bool in_visibility) |
ShellKey & | SetFaceVisibilitiesByList (SizeTArray const &in_faces, bool in_visibility) |
ShellKey & | UnsetFaceColors () |
ShellKey & | UnsetFaceColorsByRange (size_t in_start, size_t in_count) |
ShellKey & | UnsetFaceColorsByList (SizeTArray const &in_vertices) |
ShellKey & | UnsetFaceNormals () |
ShellKey & | UnsetFaceNormalsByRange (size_t in_start, size_t in_count) |
ShellKey & | UnsetFaceNormalsByList (SizeTArray const &in_vertices) |
ShellKey & | UnsetFaceVisibilities () |
ShellKey & | UnsetFaceVisibilitiesByRange (size_t in_start, size_t in_count) |
ShellKey & | UnsetFaceVisibilitiesByList (SizeTArray const &in_vertices) |
ShellKey & | UnsetFaceEverything () |
bool | ShowFaceColorsByRange (size_t in_start, size_t in_count, MaterialTypeArray &out_types, RGBColorArray &out_rgb_colors, FloatArray &out_indices) const |
bool | ShowFaceColorsByList (SizeTArray const &in_faces, MaterialTypeArray &out_types, RGBColorArray &out_rgb_colors, FloatArray &out_indices) const |
bool | ShowFaceNormalsByRange (size_t in_start, size_t in_count, BoolArray &out_validities, VectorArray &out_normals) const |
bool | ShowFaceNormalsByList (SizeTArray const &in_faces, BoolArray &out_validities, VectorArray &out_normals) const |
bool | ShowNetFaceNormalsByRange (size_t in_start, size_t in_count, VectorArray &out_normals) const |
bool | ShowNetFaceNormalsByList (SizeTArray const &in_faces, VectorArray &out_normals) const |
bool | ShowFaceVisibilitiesByRange (size_t in_start, size_t in_count, BoolArray &out_validities, BoolArray &out_visibilities) const |
bool | ShowFaceVisibilitiesByList (SizeTArray const &in_faces, BoolArray &out_validities, BoolArray &out_visibilities) const |
ShellKey & | EditPointsByInsertion (size_t in_offset, size_t in_count, Point const in_points[]) |
ShellKey & | EditPointsByInsertion (size_t in_offset, PointArray const &in_points) |
ShellKey & | EditPointsByDeletion (size_t in_offset, size_t in_count) |
ShellKey & | EditPointsByReplacement (size_t in_offset, size_t in_count, Point const in_points[]) |
ShellKey & | EditPointsByReplacement (size_t in_offset, PointArray const &in_points) |
ShellKey & | EditFacelistByInsertion (size_t in_offset, size_t in_count, int const in_facelist[]) |
ShellKey & | EditFacelistByInsertion (size_t in_offset, IntArray const &in_facelist) |
ShellKey & | EditFacelistByDeletion (size_t in_offset, size_t in_count) |
ShellKey & | EditFacelistByReplacement (size_t in_offset, size_t in_count, int const in_facelist[]) |
ShellKey & | EditFacelistByReplacement (size_t in_offset, IntArray const &in_facelist) |
void | Optimize (ShellOptimizationOptionsKit const &in_shell_optimization_kit) |
void | ComputeRelation (PointArray const &in_points, ShellRelationOptionsKit const &in_options, ShellRelationResultsKit &out_results) const |
void | ComputeRelation (ShellKey const &in_points_source, ShellRelationOptionsKit const &in_options, ShellRelationResultsKit &out_results) const |
void | ComputeRelation (ShellKit const &in_points_source, ShellRelationOptionsKit const &in_options, ShellRelationResultsKit &out_results) const |
![]() | |
GeometryKey () | |
GeometryKey (Key const &in_that) | |
GeometryKey (GeometryKey const &in_that) | |
GeometryKey & | operator= (GeometryKey const &in_that) |
GeometryKey (GeometryKey &&in_that) | |
GeometryKey & | operator= (GeometryKey &&in_that) |
size_t | ShowReferrers (SegmentKeyArray &out_segments) const |
size_t | ShowReferrers (ReferenceKeyArray &out_references) const |
GeometryKey & | SetPriority (int in_priority) |
GeometryKey & | UnsetPriority () |
bool | ShowPriority (int &out_priority) const |
GeometryKey & | SetUserData (intptr_t in_index, size_t in_bytes, byte const in_data[]) |
GeometryKey & | SetUserData (intptr_t in_index, ByteArray const &in_data) |
GeometryKey & | SetUserData (IntPtrTArray const &in_indices, ByteArrayArray const &in_data) |
GeometryKey & | UnsetUserData (intptr_t in_index) |
GeometryKey & | UnsetUserData (size_t in_count, intptr_t const in_indices[]) |
GeometryKey & | UnsetUserData (IntPtrTArray const &in_indices) |
GeometryKey & | UnsetAllUserData () |
size_t | ShowUserDataCount () const |
bool | ShowUserDataIndices (IntPtrTArray &out_indices) const |
bool | ShowUserData (intptr_t in_index, ByteArray &out_data) const |
bool | ShowUserData (IntPtrTArray &out_indices, ByteArrayArray &out_data) const |
bool | ShowBoundings (BoundingKit &out_kit) const |
![]() | |
Key () | |
Key (Key const &in_that) | |
Key (Control const &in_control) | |
Key (Key &&in_that) | |
Key & | operator= (Key &&in_that) |
virtual | ~Key () |
bool | HasOwner () const |
SegmentKey | Up () const |
SegmentKey | Owner () const |
void | Delete () |
void | MoveTo (SegmentKey const &in_new_owner) |
Key | CopyTo (SegmentKey const &in_destination) const |
Key & | operator= (Key const &in_that) |
virtual void | Assign (Key const &in_that) |
bool | Equals (Key const &in_that) const |
bool | operator!= (Key const &in_that) const |
bool | operator== (Key const &in_that) const |
size_t | GetHash () const |
![]() | |
Object & | operator= (Object const &other_object) |
Object (Object &&in_that) | |
Object & | operator= (Object &&in_that) |
HPS::Type | Type () const |
virtual bool | Empty () const |
virtual void | Reset () |
bool | HasType (HPS::Type in_mask) const |
intptr_t | GetClassID () const |
intptr_t | GetInstanceID () const |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static intptr_t | ClassID () |
The ShellKey class is a smart pointer to a database object. It is a handle to a shell created by SegmentKey::InsertShell.
HPS::ShellKey::ShellKey | ( | ) |
|
explicit |
This constructor creates an ShellKey object that shares the underlying smart-pointer of the source Key. The copy will only be successful if the source key is really an upcast of a shell key. Otherwise the copy will fail and the resulting ShellKey will be invalid.
in_key | The source Key to copy. |
HPS::ShellKey::ShellKey | ( | ShellKey const & | in_that | ) |
HPS::ShellKey::ShellKey | ( | ShellKey && | in_that | ) |
void HPS::ShellKey::ComputeRelation | ( | PointArray const & | in_points, |
ShellRelationOptionsKit const & | in_options, | ||
ShellRelationResultsKit & | out_results | ||
) | const |
Computes the relation of a collection of points to this shell, subject to the specified options.
in_points | An array of points to test against this shell. |
in_options | The options to use when performing the relation test. |
out_results | The results of the relation test. |
void HPS::ShellKey::ComputeRelation | ( | ShellKey const & | in_points_source, |
ShellRelationOptionsKit const & | in_options, | ||
ShellRelationResultsKit & | out_results | ||
) | const |
Computes the relation of a collection of points to this shell, subject to the specified options.
in_points_source | A shell whose points should be tested against this shell. |
in_options | The options to use when performing the relation test. |
out_results | The results of the relation test. |
void HPS::ShellKey::ComputeRelation | ( | ShellKit const & | in_points_source, |
ShellRelationOptionsKit const & | in_options, | ||
ShellRelationResultsKit & | out_results | ||
) | const |
Computes the relation of a collection of points to this shell, subject to the specified options.
in_points_source | A shell whose points should be tested against this shell. |
in_options | The options to use when performing the relation test. |
out_results | The results of the relation test. |
void HPS::ShellKey::Consume | ( | ShellKit & | in_kit | ) |
ShellKey& HPS::ShellKey::EditFacelistByDeletion | ( | size_t | in_offset, |
size_t | in_count | ||
) |
Removes faces from the face list for this ShellKey. This will not affect the points referenced by the removed faces, however any face attributes on the removed faces will be lost.
in_offset | The offset into the faces for the shell at which to start removing faces. This value must be such that in_offset<face_count for deletion to succeed. This is not an offset into the raw face list, but is relative to the actual face count for the shell. |
in_count | The number of faces to remove from the face list for the shell. This value must be such that in_offset+in_count<=face_count for the deletion to succeed. |
ShellKey& HPS::ShellKey::EditFacelistByInsertion | ( | size_t | in_offset, |
size_t | in_count, | ||
int const | in_facelist[] | ||
) |
Adds faces to the face list for this ShellKey.
in_offset | The offset into the faces for the shell at which to insert faces. This value must be such that in_offset<face_count for insertion to succeed. This is not an offset into the raw face list, but is relative to the actual face count for the shell. |
in_count | Size of the following array. |
in_points | The faces (using the standard face-list encoding) to insert into the face list at the specified offset. |
ShellKey& HPS::ShellKey::EditFacelistByInsertion | ( | size_t | in_offset, |
IntArray const & | in_facelist | ||
) |
Adds faces to the face list for this ShellKey.
in_offset | The offset into the faces for the shell at which to insert faces. This value must be such that in_offset<face_count for insertion to succeed. This is not an offset into the raw face list, but is relative to the actual face count for the shell. |
in_points | The faces (using the standard face-list encoding) to insert into the face list at the specified offset. |
ShellKey& HPS::ShellKey::EditFacelistByReplacement | ( | size_t | in_offset, |
size_t | in_count, | ||
int const | in_facelist[] | ||
) |
Replaces faces in the face list for this ShellKey.
in_offset | The offset into the faces for the shell at which to start replacing faces. This value must be such that in_offset<face_count for replacement to succeed. This is not an offset into the raw face list, but is relative to the actual face count for the shell. |
in_count | Size of the following array. |
in_points | The faces (using the standard face-list encoding) to use to replace those in the face list at the specified offset. The number of replacement faces must be such that in_offset+replacement_face_count<=face_count. This does not mean that the face list length must be the same, i.e., faces can use different numbers of vertices than previously, but rather is a limit on the number of faces encoded in the face list. |
ShellKey& HPS::ShellKey::EditFacelistByReplacement | ( | size_t | in_offset, |
IntArray const & | in_facelist | ||
) |
Replaces faces in the face list for this ShellKey.
in_offset | The offset into the faces for the shell at which to start replacing faces. This value must be such that in_offset<face_count for replacement to succeed. This is not an offset into the raw face list, but is relative to the actual face count for the shell. |
in_points | The faces (using the standard face-list encoding) to use to replace those in the face list at the specified offset. The number of replacement faces must be such that in_offset+replacement_face_count<=face_count. This does not mean that the face list length must be the same, i.e., faces can use different numbers of vertices than previously, but rather is a limit on the number of faces encoded in the face list. |
ShellKey& HPS::ShellKey::EditPointsByDeletion | ( | size_t | in_offset, |
size_t | in_count | ||
) |
Removes points from the point list for this ShellKey. Any existing faces which reference points which are being deleted will be removed. Additionally, any vertex settings on the deleted vertices, i.e., colors, normals, parameters, and visibilities, will be removed. The face list will also be updated to reflect the new vertex offsets caused by removing elements from the point list.
in_offset | The offset into the point list for the shell at which to start removing points. This value must be such that in_offset<point_count for deletion to succeed. |
in_count | The number of points to delete from the point list for the shell. This value must be such that in_offset+in_count<=point_count for the deletion to succeed. |
ShellKey& HPS::ShellKey::EditPointsByInsertion | ( | size_t | in_offset, |
size_t | in_count, | ||
Point const | in_points[] | ||
) |
Adds points to the point list for this ShellKey. No existing faces will reference these points, i.e., the face list will be updated to reference the original vertices in their new positions. Addtionally, no vertex attributes will apply to these points, i.e., the vertex attributes will only be set on those points which had them prior to the insertion.
in_offset | The offset into the point list for the shell at which to insert points. This value must be such that in_offset<point_count for insertion to succeed. |
in_count | Size of the following array. |
in_points | The points to insert into the point list at the specified offset. |
ShellKey& HPS::ShellKey::EditPointsByInsertion | ( | size_t | in_offset, |
PointArray const & | in_points | ||
) |
Adds points to the point list for this ShellKey. No existing faces will reference these points, i.e., the face list will be updated to reference the original vertices in their new positions. Addtionally, no vertex attributes will apply to these points, i.e., the vertex attributes will only be set on those points which had them prior to the insertion.
in_offset | The offset into the point list for the shell at which to insert points. This value must be such that in_offset<point_count for insertion to succeed. |
in_points | The points to insert into the point list at the specified offset. |
ShellKey& HPS::ShellKey::EditPointsByReplacement | ( | size_t | in_offset, |
size_t | in_count, | ||
Point const | in_points[] | ||
) |
Replaces points in the point list for this ShellKey. These points will replace those already referenced by any faces and will inherit any attributes the points being replaced had.
in_offset | The offset into the point list for the shell at which to start replacing points. This value must be such that in_offset<point_count for replacement to succeed. |
in_count | Size of the following array. This value must be such that in_offset+in_count<=point_count for the replacement to succeed. |
in_points | The points to use to replace those in the point list at the specified offset. |
ShellKey& HPS::ShellKey::EditPointsByReplacement | ( | size_t | in_offset, |
PointArray const & | in_points | ||
) |
Replaces points in the point list for this ShellKey. These points will replace those already referenced by any faces and will inherit any attributes the points being replaced had.
in_offset | The offset into the point list for the shell at which to start replacing points. This value must be such that in_offset<point_count for replacement to succeed. |
in_points | The points to use to replace those in the point list at the specified offset. This size of the array must be such that in_offset+in_points.size()<=point_count for the replacement to succeed. |
size_t HPS::ShellKey::GetFaceCount | ( | ) | const |
Retrieves the number of faces in this shell. Note that this is different than the length of the face list
size_t HPS::ShellKey::GetPointCount | ( | ) | const |
Retrieves the number of points in this shell.
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
Reimplemented from HPS::GeometryKey.
void HPS::ShellKey::Optimize | ( | ShellOptimizationOptionsKit const & | in_shell_optimization_kit | ) |
Optimizes the shell using the parameters set in a ShellOptimizationOptionsKit
in_shell_optimization_options_kit | The kit containing the optimization options to use. |
void HPS::ShellKey::Set | ( | ShellKit const & | in_kit | ) |
ShellKey& HPS::ShellKey::SetFaceIndexColorsByList | ( | size_t | in_count, |
size_t const | in_faces[], | ||
float const | in_indices[] | ||
) |
Sets face material indices on a selection of arbitrary faces.
in_count | Size of the following arrays. |
in_faces | The indices of the faces on which to set the colors. Each index in the array must be such that in_faces[i]<face_count for setting to succeed. |
in_indices | The material indices to set on the faces. |
ShellKey& HPS::ShellKey::SetFaceIndexColorsByList | ( | SizeTArray const & | in_faces, |
FloatArray const & | in_indices | ||
) |
Sets face material indices on a selection of arbitrary faces. If the sizes of the face index and material index arrays are different, the smaller size will be used.
in_faces | The indices of the faces on which to set the colors. Each index in the array must be such that in_faces[i]<face_count for setting to succeed. |
in_indices | The material indices to set on the faces. |
ShellKey& HPS::ShellKey::SetFaceIndexColorsByList | ( | size_t | in_count, |
size_t const | in_faces[], | ||
float | in_index | ||
) |
Sets a single material index on a selection of arbitrary faces.
in_count | Size of the following array. |
in_faces | The indices of the faces on which to set the color. Each index in the array must be such that in_faces[i]<face_count for setting to succeed. |
in_index | The material index to set on the faces. |
ShellKey& HPS::ShellKey::SetFaceIndexColorsByList | ( | SizeTArray const & | in_faces, |
float | in_index | ||
) |
Sets a single material index on a selection of arbitrary faces.
in_faces | The indices of the faces on which to set the color. Each index in the array must be such that in_faces[i]<face_count for setting to succeed. |
in_index | The material index to set on the faces. |
ShellKey& HPS::ShellKey::SetFaceIndexColorsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
float const | in_indices[] | ||
) |
Sets face material indices on a range of faces starting at the specified offset.
in_start | The offset into the faces for this ShellKey at which to start setting colors. This value must be such that in_start<face_count for setting to succeed. |
in_count | Size of the following array. This value must be such that in_start+in_count<=face_count for the setting to succeed. |
in_indices | The material indices to set on the faces for this ShellKey. |
ShellKey& HPS::ShellKey::SetFaceIndexColorsByRange | ( | size_t | in_start, |
FloatArray const & | in_indices | ||
) |
Sets face material indices on a range of faces starting at the specified offset.
in_start | The offset into the faces for this ShellKey at which to start setting colors. This value must be such that in_start<face_count for setting to succeed. |
in_indices | The material indices to set on the faces for this ShellKey. The size of the array must be such that in_start+in_indices.size()<=face_count for the setting to succeed. |
ShellKey& HPS::ShellKey::SetFaceIndexColorsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
float | in_index | ||
) |
Sets a single material index on a range of faces starting at the specified offset.
in_start | The offset into the faces for this ShellKey at which to start setting the color. This value must be such that in_start<face_count for setting to succeed. |
in_count | The number of faces on which to set the color. This value must be such that in_start+in_count<=face_count for the setting to succeed. |
in_index | The material index to set on the faces for this ShellKey. |
ShellKey& HPS::ShellKey::SetFacelist | ( | IntArray const & | in_facelist | ) |
ShellKey& HPS::ShellKey::SetFacelist | ( | size_t | in_count, |
int const | in_facelist[] | ||
) |
ShellKey& HPS::ShellKey::SetFaceNormalsByList | ( | size_t | in_count, |
size_t const | in_faces[], | ||
Vector const | in_normals[] | ||
) |
Sets face normals on a selection of arbitrary faces.
in_count | Size of the following arrays. |
in_faces | The indices of the faces on which to set the normals. Each index in the array must be such that in_faces[i]<face_count for setting to succeed. |
in_normals | The normals to set on the faces. |
ShellKey& HPS::ShellKey::SetFaceNormalsByList | ( | SizeTArray const & | in_faces, |
VectorArray const & | in_normals | ||
) |
Sets face normals on a selection of arbitrary faces. If the sizes of the face index and normal arrays are different, the smaller size will be used.
in_faces | The indices of the faces on which to set the normals. Each index in the array must be such that in_faces[i]<face_count for setting to succeed. |
in_normals | The normals to set on the faces. |
ShellKey& HPS::ShellKey::SetFaceNormalsByList | ( | size_t | in_count, |
size_t const | in_faces[], | ||
Vector const & | in_normal | ||
) |
Sets a single normal on a selection of arbitrary faces.
in_count | Size of the following array. |
in_faces | The indices of the faces on which to set the normal. Each index in the array must be such that in_faces[i]<face_count for setting to succeed. |
in_normal | The normal to set on the faces. |
ShellKey& HPS::ShellKey::SetFaceNormalsByList | ( | SizeTArray const & | in_faces, |
Vector const & | in_normal | ||
) |
Sets a single normal on a selection of arbitrary faces.
in_faces | The indices of the faces on which to set the normal. Each index in the array must be such that in_faces[i]<face_count for setting to succeed. |
in_normal | The normal to set on the faces. |
ShellKey& HPS::ShellKey::SetFaceNormalsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
Vector const | in_normals[] | ||
) |
Sets face normals on a range of faces starting at the specified offset.
in_start | The offset into the faces for this ShellKey at which to start setting normals. This value must be such that in_start<face_count for setting to succeed. |
in_count | Size of the following array. This value must be such that in_start+in_count<=face_count for the setting to succeed. |
in_normals | The normals to set on the faces for this ShellKey. |
ShellKey& HPS::ShellKey::SetFaceNormalsByRange | ( | size_t | in_start, |
VectorArray const & | in_normals | ||
) |
Sets face normals on a range of faces starting at the specified offset.
in_start | The offset into the faces for this ShellKey at which to start setting normals. This value must be such that in_start<face_count for setting to succeed. |
in_normals | The normals to set on the faces for this ShellKey. The size of the array must be such that in_start+in_normals.size()<=face_count for the setting to succeed. |
ShellKey& HPS::ShellKey::SetFaceNormalsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
Vector const & | in_normal | ||
) |
Sets a single normal on a range of faces starting at the specified offset.
in_start | The offset into the faces for this ShellKey at which to start setting the normal. This value must be such that in_start<face_count for setting to succeed. |
in_count | The number of faces on which to set the normal. This value must be such that in_start+in_count<=face_count for the setting to succeed. |
in_normal | The normal to set on the faces for this ShellKey. |
ShellKey& HPS::ShellKey::SetFaceRGBColorsByList | ( | size_t | in_count, |
size_t const | in_faces[], | ||
RGBColor const | in_rgb_colors[] | ||
) |
Sets face RGB colors on a selection of arbitrary faces.
in_count | Size of the following arrays. |
in_faces | The indices of the faces on which to set the colors. Each index in the array must be such that in_faces[i]<face_count for setting to succeed. |
in_rgb_colors | The RGB colors to set on the faces. |
ShellKey& HPS::ShellKey::SetFaceRGBColorsByList | ( | SizeTArray const & | in_faces, |
RGBColorArray const & | in_rgb_colors | ||
) |
Sets face RGB colors on a selection of arbitrary faces. If the sizes of the face index array and the color array different, the smaller size will be used.
in_faces | The indices of the faces on which to set the colors. Each index in the array must be such that in_faces[i]<face_count for setting to succeed. |
in_rgb_colors | The RGB colors to set on the faces. |
ShellKey& HPS::ShellKey::SetFaceRGBColorsByList | ( | size_t | in_count, |
size_t const | in_faces[], | ||
RGBColor const & | in_rgb_color | ||
) |
Sets a single RGB color on a selection of arbitrary faces.
in_count | Size of the following array. |
in_faces | The indices of the faces on which to set the color. Each index in the array must be such that in_faces[i]<face_count for setting to succeed. |
in_rgb_color | The RGB color to set on the faces. |
ShellKey& HPS::ShellKey::SetFaceRGBColorsByList | ( | SizeTArray const & | in_faces, |
RGBColor const & | in_rgb_color | ||
) |
Sets a single RGB color on a selection of arbitrary faces.
in_faces | The indices of the faces on which to set the color. Each index in the array must be such that in_faces[i]<face_count for setting to succeed. |
in_rgb_color | The RGB color to set on the faces. |
ShellKey& HPS::ShellKey::SetFaceRGBColorsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
RGBColor const | in_rgb_colors[] | ||
) |
Sets face RGB colors on a range of faces starting at the specified offset.
in_start | The offset into the faces for this ShellKey at which to start setting colors. This value must be such that in_start<face_count for setting to succeed. |
in_count | Size of the following array. This value must be such that in_start+in_count<=face_count for the setting to succeed. |
in_rgb_colors | The RGB colors to set on the faces for this ShellKey. |
ShellKey& HPS::ShellKey::SetFaceRGBColorsByRange | ( | size_t | in_start, |
RGBColorArray const & | in_rgb_colors | ||
) |
Sets face RGB colors on a range of faces starting at the specified offset.
in_start | The offset into the faces for this ShellKey at which to start setting colors. This value must be such that in_start<face_count for setting to succeed. |
in_rgb_colors | The RGB colors to set on the faces for this ShellKey. The size of the array must be such that in_start+in_rgb_colors.size()<=face_count for the setting to succeed. |
ShellKey& HPS::ShellKey::SetFaceRGBColorsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
RGBColor const & | in_rgb_color | ||
) |
Sets a single RGB color on a range of faces starting at the specified offset.
in_start | The offset into the faces for this ShellKey at which to start setting the color. This value must be such that in_start<face_count for setting to succeed. |
in_count | The number of faces on which to set the color. This value must be such that in_start+in_count<=face_count for the setting to succeed. |
in_rgb_color | The RGB color to set on the faces for this ShellKey. |
ShellKey& HPS::ShellKey::SetFaceVisibilitiesByList | ( | size_t | in_count, |
size_t const | in_faces[], | ||
bool const | in_visibilities[] | ||
) |
Sets face visibilities on a selection of arbitrary faces.
in_count | Size of the following arrays. |
in_faces | The indices of the faces on which to set the visibilities. Each index in the array must be such that in_faces[i]<face_count for setting to succeed. |
in_visibilities | The visibilities to set on the faces. |
ShellKey& HPS::ShellKey::SetFaceVisibilitiesByList | ( | SizeTArray const & | in_faces, |
BoolArray const & | in_visibilities | ||
) |
Sets face visibilities on a selection of arbitrary faces. If the sizes of the face index and visibility arrays are different, the smaller size will be used.
in_faces | The indices of the faces on which to set the visibilities. Each index in the array must be such that in_faces[i]<face_count for setting to succeed. |
in_visibilities | The visibilities to set on the faces. |
ShellKey& HPS::ShellKey::SetFaceVisibilitiesByList | ( | size_t | in_count, |
size_t const | in_faces[], | ||
bool | in_visibility | ||
) |
Sets a single visibility on a selection of arbitrary faces.
in_count | Size of the following array. |
in_faces | The indices of the faces on which to set the visibility. Each index in the array must be such that in_faces[i]<face_count for setting to succeed. |
in_visibility | The visibility to set on the faces. |
ShellKey& HPS::ShellKey::SetFaceVisibilitiesByList | ( | SizeTArray const & | in_faces, |
bool | in_visibility | ||
) |
Sets a single visibility on a selection of arbitrary faces.
in_faces | The indices of the faces on which to set the visibility. Each index in the array must be such that in_faces[i]<face_count for setting to succeed. |
in_visibility | The visibility to set on the faces. |
ShellKey& HPS::ShellKey::SetFaceVisibilitiesByRange | ( | size_t | in_start, |
size_t | in_count, | ||
bool const | in_visibilities[] | ||
) |
Sets face visibilities on a range of faces starting at the specified offset.
in_start | The offset into the faces for this ShellKey at which to start setting visibilities. This value must be such that in_start<face_count for setting to succeed. |
in_count | Size of the following array. This value must be such that in_start+in_count<=face_count for the setting to succeed. |
in_visibilities | The visibilities to set on the faces for this ShellKey. |
ShellKey& HPS::ShellKey::SetFaceVisibilitiesByRange | ( | size_t | in_start, |
BoolArray const & | in_visibilities | ||
) |
Sets face visibilities on a range of faces starting at the specified offset.
in_start | The offset into the faces for this ShellKey at which to start setting visibilities. This value must be such that in_start<face_count for setting to succeed. |
in_visibilities | The visibilities to set on the faces for this ShellKey. The size of the array must be such that in_start+in_visibilities.size()<=face_count for the setting to succeed. |
ShellKey& HPS::ShellKey::SetFaceVisibilitiesByRange | ( | size_t | in_start, |
size_t | in_count, | ||
bool | in_visibility | ||
) |
Sets a single visibility on a range of faces starting at the specified offset.
in_start | The offset into the faces for this ShellKey at which to start setting the visibility. This value must be such that in_start<face_count for setting to succeed. |
in_count | The number of faces on which to set the visibility. This value must be such that in_start+in_count<=face_count for the setting to succeed. |
in_visibility | The visibility to set on the faces for this ShellKey. |
ShellKey& HPS::ShellKey::SetMaterialMapping | ( | MaterialMappingKit const & | in_kit | ) |
Sets the specified material mappings on this ShellKey. Only face, back face, cut edge, cut face, edge, and vertex materials will be set on the shell. These material settings will be "global" for the shell, i.e., all types will get the material for that type. To get different materials for the same types, e.g., faces with different colors, it is necessary to use the per-vertex or per-face functions.
in_kit | The material mappings to set on this ShellKey. |
ShellKey& HPS::ShellKey::SetPoints | ( | PointArray const & | in_points | ) |
ShellKey& HPS::ShellKey::SetTristrips | ( | IntArray const & | in_tristrips | ) |
ShellKey& HPS::ShellKey::SetTristrips | ( | size_t | in_count, |
int const | in_tristrips[] | ||
) |
ShellKey& HPS::ShellKey::SetVertexIndexColorsByList | ( | size_t | in_count, |
size_t const | in_vertices[], | ||
float const | in_indices[], | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets vertex material indices on a selection of arbitrary vertices which apply to the specified shell component.
in_count | Size of the following arrays. |
in_vertices | The indices of the vertices on which to set the colors. |
in_indices | The material indices to set on the vertices. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexIndexColorsByList | ( | SizeTArray const & | in_vertices, |
FloatArray const & | in_indices, | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets vertex material indices on a selection of arbitrary vertices which apply to the specified shell component. If the sizes of the vertex index and material index arrays are different, the smaller size will be used.
in_vertices | The indices of the vertices on which to set the colors. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_indices | The material indices to set on the vertices. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexIndexColorsByList | ( | size_t | in_count, |
size_t const | in_vertices[], | ||
float | in_index, | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets a single material index on a selection of arbitrary vertices which apply to the specified shell component.
in_count | Size of the following array. |
in_vertices | The indices of the vertices on which to set the color. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_index | The material index to set on the vertices. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexIndexColorsByList | ( | SizeTArray const & | in_vertices, |
float | in_index, | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets a single material index on a selection of arbitrary vertices which apply to the specified shell component.
in_vertices | The indices of the vertices on which to set the color. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_index | The material index to set on the vertices. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexIndexColorsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
float const | in_indices[], | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets vertex material indices on a range of vertices starting at the specified offset which apply to the specified shell component.
in_start | The offset into the vertices for this ShellKey at which to start setting colors. This value must be such that in_start<point_count for setting to succeed. |
in_count | Size of the following array. This value must be such that in_start+in_count<=point_count for the setting to succeed. |
in_indices | The material indices to set on the vertices for this ShellKey. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexIndexColorsByRange | ( | size_t | in_start, |
FloatArray const & | in_indices, | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets vertex material indices on a range of vertices starting at the specified offset which apply to the specified shell component.
in_start | The offset into the vertices for this ShellKey at which to start setting colors. This value must be such that in_start<point_count for setting to succeed. |
in_indices | The material indices to set on the vertices for this ShellKey. The size of the array must be such that in_start+in_indices.size()<=point_count for the setting to succeed. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexIndexColorsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
float | in_index, | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets a single material index on a range of vertices starting at the specified offset which apply to the specified shell component.
in_start | The offset into the vertices for this ShellKey at which to start setting the color. This value must be such that in_start<point_count for setting to succeed. |
in_count | The number of vertices on which to set the color. This value must be such that in_start+in_count<=point_count for the setting to succeed. |
in_index | The material index to set on the vertices for this ShellKey. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexNormalsByList | ( | size_t | in_count, |
size_t const | in_vertices[], | ||
Vector const | in_normals[] | ||
) |
Sets vertex normals on a selection of arbitrary vertices.
in_count | Size of the following arrays. |
in_vertices | The indices of the vertices on which to set the normals. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_normals | The normals to set on the vertices. |
ShellKey& HPS::ShellKey::SetVertexNormalsByList | ( | SizeTArray const & | in_vertices, |
VectorArray const & | in_normals | ||
) |
Sets vertex normals on a selection of arbitrary vertices. If the sizes of the vertex index and normal arrays are different, the smaller size will be used.
in_vertices | The indices of the vertices on which to set the normals. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_normals | The normals to set on the vertices. |
ShellKey& HPS::ShellKey::SetVertexNormalsByList | ( | size_t | in_count, |
size_t const | in_vertices[], | ||
Vector const & | in_normal | ||
) |
Sets a single normal on a selection of arbitrary vertices.
in_count | Size of the following array. |
in_vertices | The indices of the vertices on which to set the normal. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_normal | The normal to set on the vertices. |
ShellKey& HPS::ShellKey::SetVertexNormalsByList | ( | SizeTArray const & | in_vertices, |
Vector const & | in_normal | ||
) |
Sets a single normal on a selection of arbitrary vertices.
in_vertices | The indices of the vertices on which to set the normal. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_normal | The normal to set on the vertices. |
ShellKey& HPS::ShellKey::SetVertexNormalsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
Vector const | in_normals[] | ||
) |
Sets vertex normals on a range of vertices starting at the specified offset.
in_start | The offset into the vertices for this ShellKey at which to start setting normals. This value must be such that in_start<point_count for setting to succeed. |
in_count | Size of the following array. This value must be such that in_start+in_count<=point_count for the setting to succeed. |
in_normals | The normals to set on the vertices for this ShellKey. |
ShellKey& HPS::ShellKey::SetVertexNormalsByRange | ( | size_t | in_start, |
VectorArray const & | in_normals | ||
) |
Sets vertex normals on a range of vertices starting at the specified offset.
in_start | The offset into the vertices for this ShellKey at which to start setting normals. This value must be such that in_start<point_count for setting to succeed. |
in_normals | The normals to set on the vertices for this ShellKey. The size of the array must be such that in_start+in_normals.size()<=point_count for the setting to succeed. |
ShellKey& HPS::ShellKey::SetVertexNormalsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
Vector const & | in_normal | ||
) |
Sets a single normal on a range of vertices starting at the specified offset.
in_start | The offset into the vertices for this ShellKey at which to start setting the normal. This value must be such that in_start<point_count for setting to succeed. |
in_count | The number of vertices on which to set the normal. This value must be such that in_start+in_count<=point_count for the setting to succeed. |
in_normal | The normal to set on the vertices for this ShellKey. |
ShellKey& HPS::ShellKey::SetVertexParametersByList | ( | size_t | in_vertex_count, |
size_t const | in_vertices[], | ||
size_t | in_param_count, | ||
float const | in_params[], | ||
size_t | in_param_width = 2 |
||
) |
Sets texture parameters on a selection of arbitrary vertices. If the sizes of the vertex index array and the texture paramter array (divided by the parameter width) are different, the smaller size will be used.
in_vertex_count | Size of the following array. |
in_vertices | The indices of the vertices on which to set the texture parameters. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_param_count | Size of the following array. This should be divisible by the parameter width, if it is not, some parameters will get ignored. |
in_params | The texture parameters to set on the vertices for this ShellKey. |
in_param_width | The number of texture parameters per vertex. Defaults to 2. |
ShellKey& HPS::ShellKey::SetVertexParametersByList | ( | SizeTArray const & | in_vertices, |
FloatArray const & | in_params, | ||
size_t | in_param_width = 2 |
||
) |
Sets texture parameters on a selection of arbitrary vertices. If the sizes of the vertex index array and the texture paramter array (divided by the parameter width) are different, the smaller size will be used.
in_vertices | The indices of the vertices on which to set the texture parameters. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_params | The texture parameters to set on the vertices for this ShellKey. The size of the array should be divisible by the parameter width, if it is not, some parameters will get ignored. |
in_param_width | The number of texture parameters per vertex. Defaults to 2. |
ShellKey& HPS::ShellKey::SetVertexParametersByRange | ( | size_t | in_start, |
size_t | in_param_count, | ||
float const | in_params[], | ||
size_t | in_param_width = 2 |
||
) |
Sets texture parameters on a range of vertices starting at the specified offset.
in_start | The offset into the vertices for this ShellKey at which to start setting texture parameters. This value must be such that in_start<point_count for setting to succeed. |
in_param_count | Size of the following array. This should be divisible by the parameter width, if it is not, some parameters will get ignored. This value must be such that in_start+in_param_count/in_param_width<=point_count for the setting to succeed. |
in_params | The texture parameters to set on the vertices for this ShellKey. |
in_param_width | The number of texture parameters per vertex. Defaults to 2. |
ShellKey& HPS::ShellKey::SetVertexParametersByRange | ( | size_t | in_start, |
FloatArray const & | in_params, | ||
size_t | in_param_width = 2 |
||
) |
Sets texture parameters on a range of vertices starting at the specified offset.
in_start | The offset into the vertices for this ShellKey at which to start setting texture parameters. This value must be such that in_start<point_count for setting to succeed. |
in_params | The texture parameters to set on the vertices for this ShellKey. The size of the array should be divisible by the parameter width, if it is not, some parameters will get ignored. The size of the array must be such that in_start+in_params.size()/in_param_width<=point_count for the setting to succeed. |
in_param_width | The number of texture parameters per vertex. Defaults to 2. |
ShellKey& HPS::ShellKey::SetVertexRGBAColorsByList | ( | size_t | in_count, |
size_t const | in_vertices[], | ||
RGBAColor const | in_rgba_colors[], | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets vertex RGBA colors on a selection of arbitrary vertices which apply to the specified shell component.
in_count | Size of the following arrays. |
in_vertices | The indices of the vertices on which to set the colors. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_rgba_colors | The RGBA colors to set on the vertices. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexRGBAColorsByList | ( | SizeTArray const & | in_vertices, |
RGBAColorArray const & | in_rgba_colors, | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets vertex RGBA colors on a selection of arbitrary vertices which apply to the specified shell component. If the sizes of the vertex index array and color array are different, the smaller size will be used.
in_vertices | The indices of the vertices on which to set the colors. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_rgba_colors | The RGBA colors to set on the vertices. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexRGBAColorsByList | ( | size_t | in_count, |
size_t const | in_vertices[], | ||
RGBAColor const & | in_rgba_color, | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets a single RGBA color on a selection of arbitrary vertices which apply to the specified shell component.
in_count | Size of the following array. |
in_vertices | The indices of the vertices on which to set the color. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_rgba_color | The RGBA color to set on the vertices. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexRGBAColorsByList | ( | SizeTArray const & | in_vertices, |
RGBAColor const & | in_rgba_color, | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets a single RGBA color on a selection of arbitrary vertices which apply to the specified shell component.
in_vertices | The indices of the vertices on which to set the color. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_rgba_color | The RGBA color to set on the vertices. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexRGBAColorsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
RGBAColor const | in_rgba_colors[], | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets vertex RGBA colors on a range of vertices starting at the specified offset which apply to the specified shell component.
in_start | The offset into the vertices for this ShellKey at which to start setting colors. This value must be such that in_start<point_count for setting to succeed. |
in_count | Size of the following array. This value must be such that in_start+in_count<=point_count for the setting to succeed. |
in_rgba_colors | The RGBA colors to set on the vertices for this ShellKey. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexRGBAColorsByRange | ( | size_t | in_start, |
RGBAColorArray const & | in_rgba_colors, | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets vertex RGBA colors on a range of vertices starting at the specified offset which apply to the specified shell component.
in_start | The offset into the vertices for this ShellKey at which to start setting colors. This value must be such that in_start<point_count for setting to succeed. |
in_rgba_colors | The RGBA colors to set on the vertices for this ShellKey. The size of the array must be such that in_start+in_rgba_colors.size()<=point_count for the setting to succeed. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexRGBAColorsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
RGBAColor const & | in_rgba_color, | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets a single RGBA color on a range of vertices starting at the specified offset which apply to the specified shell component.
in_start | The offset into the vertices for this ShellKey at which to start setting the color. This value must be such that in_start<point_count for setting to succeed. |
in_count | The number of vertices on which to set the color. This value must be such that in_start+in_count<=point_count for the setting to succeed. |
in_rgba_color | The RGBA color to set on the vertices for this ShellKey. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexRGBColorsByList | ( | size_t | in_count, |
size_t const | in_vertices[], | ||
RGBColor const | in_rgb_colors[], | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets vertex RGB colors on a selection of arbitrary vertices which apply to the specified shell component.
in_count | Size of the following arrays. |
in_vertices | The indices of the vertices on which to set the colors. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_rgb_colors | The RGB colors to set on the vertices. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexRGBColorsByList | ( | SizeTArray const & | in_vertices, |
RGBColorArray const & | in_rgb_colors, | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets vertex RGB colors on a selection of arbitrary vertices which apply to the specified shell component. If the sizes of the vertex index array and the color array different, the smaller size will be used.
in_vertices | The indices of the vertices on which to set the colors. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_rgb_colors | The RGB colors to set on the vertices. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexRGBColorsByList | ( | size_t | in_count, |
size_t const | in_vertices[], | ||
RGBColor const & | in_rgb_color, | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets a single RGB color on a selection of arbitrary vertices which apply to the specified shell component.
in_count | Size of the following array. |
in_vertices | The indices of the vertices on which to set the color. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_rgb_color | The RGB color to set on the vertices. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexRGBColorsByList | ( | SizeTArray const & | in_vertices, |
RGBColor const & | in_rgb_color, | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets a single RGB color on a selection of arbitrary vertices which apply to the specified shell component.
in_vertices | The indices of the vertices on which to set the color. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_rgb_color | The RGB color to set on the vertices. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexRGBColorsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
RGBColor const | in_rgb_colors[], | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets vertex RGB colors on a range of vertices starting at the specified offset which apply to the specified shell component.
in_start | The offset into the vertices for this ShellKey at which to start setting colors. This value must be such that in_start<point_count for setting to succeed. |
in_count | Size of the following array. This value must be such that in_start+in_count<=point_count for the setting to succeed. |
in_rgb_colors | The RGB colors to set on the vertices for this ShellKey. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexRGBColorsByRange | ( | size_t | in_start, |
RGBColorArray const & | in_rgb_colors, | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets vertex RGB colors on a range of vertices starting at the specified offset which apply to the specified shell component.
in_start | The offset into the vertices for this ShellKey at which to start setting colors. This value must be such that in_start<point_count for setting to succeed. |
in_rgb_colors | The RGB colors to set on the vertices for this ShellKey. The size of the array must be such that in_start+in_rgb_colors.size()<=point_count for the setting to succeed. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexRGBColorsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
RGBColor const & | in_rgb_color, | ||
Shell::Component | in_apply_to = Shell::Component::Faces |
||
) |
Sets a single RGB color on a range of vertices starting at the specified offset which apply to the specified shell component.
in_start | The offset into the vertices for this ShellKey at which to start setting the color. This value must be such that in_start<point_count for setting to succeed. |
in_count | The number of vertices on which to set the color. This value must be such that in_start+in_count<=point_count for the setting to succeed. |
in_rgb_color | The RGB color to set on the vertices for this ShellKey. |
in_apply_to | The shell component the colors should apply to. Defaults to Shell::Component::Faces. |
ShellKey& HPS::ShellKey::SetVertexVisibilitiesByList | ( | size_t | in_count, |
size_t const | in_vertices[], | ||
bool const | in_visibilities[] | ||
) |
Sets vertex visibilities on a selection of arbitrary vertices.
in_count | Size of the following arrays. |
in_vertices | The indices of the vertices on which to set the visibilities. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_visibilities | The visibilities to set on the vertices. |
ShellKey& HPS::ShellKey::SetVertexVisibilitiesByList | ( | SizeTArray const & | in_vertices, |
BoolArray const & | in_visibilities | ||
) |
Sets vertex visibilities on a selection of arbitrary vertices. If the sizes of the vertex index and visibility arrays are different, the smaller size will be used.
in_vertices | The indices of the vertices on which to set the visibilities. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_visibilities | The visibilities to set on the vertices. |
ShellKey& HPS::ShellKey::SetVertexVisibilitiesByList | ( | size_t | in_count, |
size_t const | in_vertices[], | ||
bool | in_visibility | ||
) |
Sets a single visibility on a selection of arbitrary vertices.
in_count | Size of the following array. |
in_vertices | The indices of the vertices on which to set the visibility. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_visibility | The visibility to set on the vertices. |
ShellKey& HPS::ShellKey::SetVertexVisibilitiesByList | ( | SizeTArray const & | in_vertices, |
bool | in_visibility | ||
) |
Sets a single visibility on a selection of arbitrary vertices.
in_vertices | The indices of the vertices on which to set the visibility. Each index in the array must be such that in_vertices[i]<point_count for setting to succeed. |
in_visibility | The visibility to set on the vertices. |
ShellKey& HPS::ShellKey::SetVertexVisibilitiesByRange | ( | size_t | in_start, |
size_t | in_count, | ||
bool const | in_visibilities[] | ||
) |
Sets vertex visibilities on a range of vertices starting at the specified offset.
in_start | The offset into the vertices for this ShellKey at which to start setting visibilities. This value must be such that in_start<point_count for setting to succeed. |
in_count | Size of the following array. This value must be such that in_start+in_count<=point_count for the setting to succeed. |
in_visibilities | The visibilities to set on the vertices for this ShellKey. |
ShellKey& HPS::ShellKey::SetVertexVisibilitiesByRange | ( | size_t | in_start, |
BoolArray const & | in_visibilities | ||
) |
Sets vertex visibilities on a range of vertices starting at the specified offset.
in_start | The offset into the vertices for this ShellKey at which to start setting visibilities. This value must be such that in_start<point_count for setting to succeed. |
in_visibilities | The visibilities to set on the vertices for this ShellKey. The size of the array must be such that in_start+in_visibilities.size()<=point_count for the setting to succeed. |
ShellKey& HPS::ShellKey::SetVertexVisibilitiesByRange | ( | size_t | in_start, |
size_t | in_count, | ||
bool | in_visibility | ||
) |
Sets a single visibility on a range of vertices starting at the specified offset.
in_start | The offset into the vertices for this ShellKey at which to start setting the visibility. This value must be such that in_start<point_count for setting to succeed. |
in_count | The number of vertices on which to set the visibility. This value must be such that in_start+in_count<=point_count for the setting to succeed. |
in_visibility | The visibility to set on the vertices for this ShellKey. |
void HPS::ShellKey::Show | ( | ShellKit & | out_kit | ) | const |
bool HPS::ShellKey::ShowFaceColorsByList | ( | SizeTArray const & | in_faces, |
MaterialTypeArray & | out_types, | ||
RGBColorArray & | out_rgb_colors, | ||
FloatArray & | out_indices | ||
) | const |
Shows the face colors on a selection of arbitrary faces. The order of the values in the ouput arrays is the same as the input face index array, i.e., the values of out_types[i], out_rgb_colors[i], and out_indices[i], correspond to the face at index in_faces[i].
in_faces | The indices of the faces on which to show the colors. Each index in the array must be such that in_faces[i]<face_count for showing to succeed. |
out_types | The types of face colors for each face at the specified index. If a face at a specified index does not have a face color set, the entry in this array will be Material::Type::Nothing. |
out_rgb_colors | The RGB colors for each face at the specified index. out_rgb_colors[i] is only valid if out_types[i] is Material::Type::ExplicitRGBColor. |
out_indices | The material indices for each face at the specified index. The out_indices[i] is only valid if out_types[i] is Material::Type::MaterialIndex. |
bool HPS::ShellKey::ShowFaceColorsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
MaterialTypeArray & | out_types, | ||
RGBColorArray & | out_rgb_colors, | ||
FloatArray & | out_indices | ||
) | const |
Shows the face colors on a range of faces starting at the specified offset.
in_start | The offset into the faces for this ShellKey at which to start showing colors. This value must be such that in_start<face_count for showing to succeed. |
in_count | The number of colors to show. This value must be such that in_start+in_count<=face_count for the showing to succeed. |
out_types | The types of face colors for each face in the specified range. If a face in the specified range does not have a face color set, the entry in this array will be Material::Type::Nothing. |
out_rgb_colors | The RGB colors for each face in the specified range. out_rgb_colors[i] is only valid if out_types[i] is Material::Type::ExplicitRGBColor. |
out_indices | The material indices for each face in the specified range. The out_indices[i] is only valid if out_types[i] is Material::Type::MaterialIndex. |
bool HPS::ShellKey::ShowFacelist | ( | IntArray & | out_facelist | ) | const |
bool HPS::ShellKey::ShowFaceNormalsByList | ( | SizeTArray const & | in_faces, |
BoolArray & | out_validities, | ||
VectorArray & | out_normals | ||
) | const |
Shows the face normals on a selection of arbitrary faces. The order of the values in the output arrays is the same as the input face index array, i.e., the values of out_validities[i] and out_normals[i] correspond to the face at index in_faces[i].
in_faces | The indices of the faces on which to show the normals. Each index in the array must be such that in_faces[i]<face_count for showing to succeed. |
out_validities | The validities of the normals for each face at the specified index. If a face at a specified index had a normal set on it, the entry in this array will be true, otherwise it will be false. |
out_normals | The face normals for each face at the specified index. out_normals[i] is only valid if out_validities[i] is true. |
bool HPS::ShellKey::ShowFaceNormalsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
BoolArray & | out_validities, | ||
VectorArray & | out_normals | ||
) | const |
Shows the face normals on a range of faces starting at the specified offset.
in_start | The offset into the faces for this ShellKey at which to start showing normals. This value must be such that in_start<face_count for showing to succeed. |
in_count | The number of normals to show. This value must be such that in_start+in_count<=face_count for the showing to succeed. |
out_validities | The validities of the normals for each face in the specified range. If a face in the specified range had a normal set on it, the entry in this array will be true, otherwise it will be false. |
out_normals | The face normals for each face in the specified range. out_normals[i] is only valid if out_validities[i] is true. |
bool HPS::ShellKey::ShowFaceVisibilitiesByList | ( | SizeTArray const & | in_faces, |
BoolArray & | out_validities, | ||
BoolArray & | out_visibilities | ||
) | const |
Shows the face visibilities on a selection of arbitrary faces. The order of the values in the output arrays is the same as the input face index array, i.e., the values of out_validities[i] and out_visibilities[i] correspond to the face at index in_faces[i].
in_faces | The indices of the faces on which to show the normals. Each index in the array must be such that in_faces[i]<face_count for showing to succeed. |
out_validities | The validities of the normals for each face at the specified index. If a face at a specified index had a visibility set on it, the entry in this array will be true, otherwise it will be false. |
out_visibilities | The face visibilities for each face at the specified index. out_visibilities[i] is only valid if out_validities[i] is true. |
bool HPS::ShellKey::ShowFaceVisibilitiesByRange | ( | size_t | in_start, |
size_t | in_count, | ||
BoolArray & | out_validities, | ||
BoolArray & | out_visibilities | ||
) | const |
Shows the face visibilities on a range of faces starting at the specified offset.
in_start | The offset into the faces for this ShellKey at which to start showing visibilities. This value must be such that in_start<face_count for showing to succeed. |
in_count | The number of visibilities to show. This value must be such that in_start+in_count<=face_count for the showing to succeed. |
out_validities | The validities of the visibilities for each face in the specified range. If a face in the specified range had a visibility set on it, the entry in this array will be true, otherwise it will be false. |
out_visibilities | The face visibilities for each face in the specified range. out_visibilities[i] is only valid if out_validities[i] is true. |
bool HPS::ShellKey::ShowMaterialMapping | ( | MaterialMappingKit & | out_kit | ) | const |
bool HPS::ShellKey::ShowNetFaceNormalsByList | ( | SizeTArray const & | in_faces, |
VectorArray & | out_normals | ||
) | const |
Shows the effective face normals on a selection of arbitrary faces. If a normal for a given face is unspecified, this will retrieve the effective normal. The order of the values in the output arrays is the same as the input face index array, i.e., the values of out_validities[i] and out_normals[i] correspond to the face at index in_faces[i].
in_faces | The indices of the faces on which to show the normals. Each index in the array must be such that in_faces[i]<face_count for showing to succeed. |
out_normals | The face normals for each face at the specified index. |
bool HPS::ShellKey::ShowNetFaceNormalsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
VectorArray & | out_normals | ||
) | const |
Shows the effective face normals on a range of faces starting at the specified offset. If a normal for a given face is unspecified, this will retrieve the effective normal.
in_start | The offset into the faces for this ShellKey at which to start showing normals. This value must be such that in_start<face_count for showing to succeed. |
in_count | The number of normals to show. This value must be such that in_start+in_count<=face_count for the showing to succeed. |
out_normals | The face normals for each face in the specified range. |
bool HPS::ShellKey::ShowPoints | ( | PointArray & | out_points | ) | const |
bool HPS::ShellKey::ShowPointsByList | ( | SizeTArray const & | in_indices, |
PointArray & | out_points | ||
) | const |
bool HPS::ShellKey::ShowPointsByList | ( | size_t | in_count, |
size_t const | in_indices[], | ||
PointArray & | out_points | ||
) | const |
bool HPS::ShellKey::ShowPointsByRange | ( | size_t | in_start_index, |
size_t | in_count, | ||
PointArray & | out_points | ||
) | const |
bool HPS::ShellKey::ShowTristrips | ( | IntArray & | out_tristrips | ) | const |
bool HPS::ShellKey::ShowVertexColorsByList | ( | SizeTArray const & | in_vertices, |
Shell::Component | in_applied_to, | ||
MaterialTypeArray & | out_types, | ||
RGBColorArray & | out_rgb_colors, | ||
RGBAColorArray & | out_rgba_colors, | ||
FloatArray & | out_indices | ||
) | const |
Shows the vertex colors on a selection of arbitrary vertices which apply to the specified shell component. The order of the values in the ouput arrays is the same as the input vertex index array, i.e., the values of out_types[i], out_rgb_colors[i], out_rgba_colors[i], and out_indices[i], correspond to the vertex at index in_vertices[i].
in_vertices | The indices of the vertices on which to show the colors. Each index in the array must be such that in_vertices[i]<point_count for showing to succeed. |
in_apply_to | The shell component the colors should apply to. |
out_types | The types of vertex colors for each vertex at the specified index. If a vertex at a specified index does not have a vertex color set for the specified component, the entry in this array will be Material::Type::Nothing. |
out_rgb_colors | The RGB colors for each vertex at the specified index. out_rgb_colors[i] is only valid if out_types[i] is Material::Type::ExplicitRGBColor. |
out_rgba_colors | The RGBA colors for each vertex at the specified index. out_rgba_colors[i] is only valid if out_types[i] is Material::Type::ExplicitRGBAColor. |
out_indices | The material indices for each vertex at the specified index. The out_indices[i] is only valid if out_types[i] is Material::Type::MaterialIndex. |
bool HPS::ShellKey::ShowVertexColorsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
Shell::Component | in_applied_to, | ||
MaterialTypeArray & | out_types, | ||
RGBColorArray & | out_rgb_colors, | ||
RGBAColorArray & | out_rgba_colors, | ||
FloatArray & | out_indices | ||
) | const |
Shows the vertex colors on a range of vertices starting at the specified offset which apply to the specified shell component.
in_start | The offset into the vertices for this ShellKey at which to start showing colors. This value must be such that in_start<point_count for showing to succeed. |
in_count | The number of colors to show. This value must be such that in_start+in_count<=point_count for the showing to succeed. |
in_apply_to | The shell component the colors should apply to. |
out_types | The types of vertex colors for each vertex in the specified range. If a vertex in the specified range does not have a vertex color set for the specified shell component, the entry in this array will be Material::Type::Nothing. |
out_rgb_colors | The RGB colors for each vertex in the specified range. out_rgb_colors[i] is only valid if out_types[i] is Material::Type::ExplicitRGBColor. |
out_rgba_colors | The RGBA colors for each vertex in the specified range. out_rgba_colors[i] is only valid if out_types[i] is Material::Type::ExplicitRGBAColor. |
out_indices | The material indices for each vertex in the specified range. The out_indices[i] is only valid if out_types[i] is Material::Type::MaterialIndex. |
bool HPS::ShellKey::ShowVertexNormalsByList | ( | SizeTArray const & | in_vertices, |
BoolArray & | out_validities, | ||
VectorArray & | out_normals | ||
) | const |
Shows the vertex normals on a selection of arbitrary vertices. The order of the values in the output arrays is the same as the input vertex index array, i.e., the values of out_validities[i] and out_normals[i] correspond to the vertex at index in_vertices[i].
in_vertices | The indices of the vertices on which to show the normals. Each index in the array must be such that in_vertices[i]<point_count for showing to succeed. |
out_validities | The validities of the normals for each vertex at the specified index. If a vertex at a specified index had a normal set on it, the entry in this array will be true, otherwise it will be false. |
out_normals | The vertex normals for each vertex at the specified index. out_normals[i] is only valid if out_validities[i] is true. |
bool HPS::ShellKey::ShowVertexNormalsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
BoolArray & | out_validities, | ||
VectorArray & | out_normals | ||
) | const |
Shows the vertex normals on a range of vertices starting at the specified offset.
in_start | The offset into the vertices for this ShellKey at which to start showing normals. This value must be such that in_start<point_count for showing to succeed. |
in_count | The number of normals to show. This value must be such that in_start+in_count<=point_count for the showing to succeed. |
out_validities | The validities of the normals for each vertex in the specified range. If a vertex in the specified range had a normal set on it, the entry in this array will be true, otherwise it will be false. |
out_normals | The vertex normals for each vertex in the specified range. out_normals[i] is only valid if out_validities[i] is true. |
bool HPS::ShellKey::ShowVertexParametersByList | ( | SizeTArray const & | in_vertices, |
BoolArray & | out_validities, | ||
FloatArray & | out_params | ||
) | const |
Shows the texture parameters on a selection of arbitrary vertices. For this particular show function, the parameter width is returned implicitly and could be determined by out_params.size()/in_vertices.size(). The order of the output arrays is the same as the input vertex index array, i.e., out_validities[i] and (out_params[i],...,out_params[i+param_width-1]) correspond to the vertex at index in_vertices[i].
in_vertices | The indices of the vertices on which to show the texture parameters. Each index in the array must be such that in_vertices[i]<point_count for showing to succeed. |
out_validities | The validities of the texture parameters for each vertex at the specified index. If a vertex at a specified index had a texture parameter set on it, the entry in this array will be true, otherwise it will be false. |
out_params | The texture parameters for each vertex at the specified index. (out_params[i],...,out_params[i+param_width-1]) are only valid if out_validities[i] is true. |
bool HPS::ShellKey::ShowVertexParametersByList | ( | SizeTArray const & | in_vertices, |
BoolArray & | out_validities, | ||
FloatArray & | out_params, | ||
size_t & | out_param_width | ||
) | const |
Shows the texture parameters on a selection of arbitrary vertices. The order of the output arrays is the same as the input vertex index array, i.e., out_validities[i] and (out_params[i],...,out_params[i+param_width-1]) correspond to the vertex at index in_vertices[i].
in_vertices | The indices of the vertices on which to show the texture parameters. Each index in the array must be such that in_vertices[i]<point_count for showing to succeed. |
out_validities | The validities of the texture parameters for each vertex at the specified index. If a vertex at a specified index had a texture parameter set on it, the entry in this array will be true, otherwise it will be false. |
out_params | The texture parameters for each vertex at the specified index. (out_params[i],...,out_params[i+param_width-1]) are only valid if out_validities[i] is true. |
out_param_width | The number of texture parameters per vertex. |
bool HPS::ShellKey::ShowVertexParametersByRange | ( | size_t | in_start, |
size_t | in_count, | ||
BoolArray & | out_validities, | ||
FloatArray & | out_params | ||
) | const |
Shows the texture parameters on a range of vertices starting at the specified offset. For this particular show function, the parameter width is returned implicitly and could be determined by out_params.size()/in_count.
in_start | The offset into the vertices for this ShellKey at which to start showing texture parameters. This value must be such that in_start<point_count for showing to succeed. |
in_count | The number of vertices for which to show the texture parameters. This value must be such that in_start+in_count<=point_count for the showing to succeed. |
out_validities | The validities of the texture parameters for each vertex in the specified range. If a vertex in the specified range had a texture parameter set on it, the entry in this array will be true, otherwise it will be false. |
out_params | The texture parameters for each vertex in the specified range. (out_params[i],...,out_params[i+param_width-1]) are only valid if out_validities[i] is true. |
bool HPS::ShellKey::ShowVertexParametersByRange | ( | size_t | in_start, |
size_t | in_count, | ||
BoolArray & | out_validities, | ||
FloatArray & | out_params, | ||
size_t & | out_param_width | ||
) | const |
Shows the texture parameters on a range of vertices starting at the specified offset.
in_start | The offset into the vertices for this ShellKey at which to start showing texture parameters. This value must be such that in_start<point_count for showing to succeed. |
in_count | The number of vertices for which to show the texture parameters. This value must be such that in_start+in_count<=point_count for the showing to succeed. |
out_validities | The validities of the texture parameters for each vertex in the specified range. If a vertex in the specified range had a texture parameter set on it, the entry in this array will be true, otherwise it will be false. |
out_params | The texture parameters for each vertex in the specified range. (out_params[i],...,out_params[i+param_width-1]) are only valid if out_validities[i] is true. |
out_param_width | The number of texture parameters per vertex. |
bool HPS::ShellKey::ShowVertexVisibilitiesByList | ( | SizeTArray const & | in_vertices, |
BoolArray & | out_validities, | ||
BoolArray & | out_visibilities | ||
) | const |
Shows the vertex visibilities on a selection of arbitrary vertices. The order of the values in the output arrays is the same as the input vertex index array, i.e., the values of out_validities[i] and out_visibilities[i] correspond to the vertex at index in_vertices[i].
in_vertices | The indices of the vertices on which to show the normals. Each index in the array must be such that in_vertices[i]<point_count for showing to succeed. |
out_validities | The validities of the normals for each vertex at the specified index. If a vertex at a specified index had a visibility set on it, the entry in this array will be true, otherwise it will be false. |
out_visibilities | The vertex visibilities for each vertex at the specified index. out_visibilities[i] is only valid if out_validities[i] is true. |
bool HPS::ShellKey::ShowVertexVisibilitiesByRange | ( | size_t | in_start, |
size_t | in_count, | ||
BoolArray & | out_validities, | ||
BoolArray & | out_visibilities | ||
) | const |
Shows the vertex visibilities on a range of vertices starting at the specified offset.
in_start | The offset into the vertices for this ShellKey at which to start showing visibilities. This value must be such that in_start<point_count for showing to succeed. |
in_count | The number of visibilities to show. This value must be such that in_start+in_count<=point_count for the showing to succeed. |
out_validities | The validities of the visibilities for each vertex in the specified range. If a vertex in the specified range had a visibility set on it, the entry in this array will be true, otherwise it will be false. |
out_visibilities | The vertex visibilities for each vertex in the specified range. out_visibilities[i] is only valid if out_validities[i] is true. |
ShellKey& HPS::ShellKey::UnsetEverything | ( | ) |
ShellKey& HPS::ShellKey::UnsetFaceColors | ( | ) |
Removes all face colors (RGB colors or material indices).
ShellKey& HPS::ShellKey::UnsetFaceColorsByList | ( | SizeTArray const & | in_vertices | ) |
Removes the face colors (RGB colors or material indices) on a selection of arbitrary vertices.
in_vertices | The indices of the faces on which to remove the colors. Each index in the array must be such that in_faces[i]<face_count for removal to succeed. |
ShellKey& HPS::ShellKey::UnsetFaceColorsByRange | ( | size_t | in_start, |
size_t | in_count | ||
) |
Removes the specified range of face colors (RGB colors or material indices) starting at the specified offset.
in_start | The offset into the faces for this ShellKey at which to start removing colors. This value must be such that in_start<face_count for removal to succeed. |
in_count | The number of face colors to remove for this ShellKey. This value must be such that in_start+in_count<=face_count for the removal to succeed. |
ShellKey& HPS::ShellKey::UnsetFaceEverything | ( | ) |
ShellKey& HPS::ShellKey::UnsetFacelist | ( | ) |
ShellKey& HPS::ShellKey::UnsetFaceNormals | ( | ) |
Removes all face normals.
ShellKey& HPS::ShellKey::UnsetFaceNormalsByList | ( | SizeTArray const & | in_vertices | ) |
Removes the face normals on a selection of arbitrary faces.
in_faces | The indices of the faces on which to remove the normals. Each index in the array must be such that in_faces[i]<face_count for removal to succeed. |
ShellKey& HPS::ShellKey::UnsetFaceNormalsByRange | ( | size_t | in_start, |
size_t | in_count | ||
) |
Removes the specified range of face normals starting at the specified offset.
in_start | The offset into the faces for this ShellKey at which to start removing normals. This value must be such that in_start<face_count for removal to succeed. |
in_count | The number of face normals to remove for this ShellKey. This value must be such that in_start+in_count<=face_count for the removal to succeed. |
ShellKey& HPS::ShellKey::UnsetFaceVisibilities | ( | ) |
Removes all face visibilities.
ShellKey& HPS::ShellKey::UnsetFaceVisibilitiesByList | ( | SizeTArray const & | in_vertices | ) |
Removes the face visibilities on a selection of arbitrary faces.
in_faces | The indices of the faces on which to remove the visibilities. Each index in the array must be such that in_faces[i]<face_count for removal to succeed. |
ShellKey& HPS::ShellKey::UnsetFaceVisibilitiesByRange | ( | size_t | in_start, |
size_t | in_count | ||
) |
Removes the specified range of face visibilities starting at the specified offset.
in_start | The offset into the faces for this ShellKey at which to start removing visibilities. This value must be such that in_start<face_count for removal to succeed. |
in_count | The number of face visibilities to remove for this ShellKey. This value must be such that in_start+in_count<=face_count for the removal to succeed. |
ShellKey& HPS::ShellKey::UnsetMaterialMapping | ( | ) |
ShellKey& HPS::ShellKey::UnsetPoints | ( | ) |
ShellKey& HPS::ShellKey::UnsetTristrips | ( | ) |
ShellKey& HPS::ShellKey::UnsetVertexColors | ( | ) |
Removes all vertex colors (RGB colors, RGBA colors, or material indices) for all shell components.
ShellKey& HPS::ShellKey::UnsetVertexColors | ( | Shell::Component | in_apply_to | ) |
Removes all vertex colors (RGB colors, RGBA colors, or material indices) for the specified shell component.
in_apply_to | The shell component for which to remove the colors. |
ShellKey& HPS::ShellKey::UnsetVertexColorsByList | ( | SizeTArray const & | in_vertices | ) |
Removes the vertex colors (RGB colors, RGBA colors, or material indices) for all shell components on a selection of arbitrary vertices.
in_vertices | The indices of the vertices on which to remove the colors. Each index in the array must be such that in_vertices[i]<point_count for removal to succeed. |
ShellKey& HPS::ShellKey::UnsetVertexColorsByList | ( | SizeTArray const & | in_vertices, |
Shell::Component | in_apply_to | ||
) |
Removes the vertex colors (RGB colors, RGBA colors, or material indices) for the specified shell component on a selection of arbitrary vertices.
in_vertices | The indices of the vertices on which to remove the colors. Each index in the array must be such that in_vertices[i]<point_count for removal to succeed. |
in_apply_to | The shell component for which to remove the colors. |
ShellKey& HPS::ShellKey::UnsetVertexColorsByRange | ( | size_t | in_start, |
size_t | in_count | ||
) |
Removes the specified range of vertex colors (RGB colors, RGBA colors, or material indices) for all shell components starting at the specified offset.
in_start | The offset into the vertices for this ShellKey at which to start removing colors. This value must be such that in_start<point_count for removal to succeed. |
in_count | The number of vertex colors to remove for this ShellKey. This value must be such that in_start+in_count<=point_count for the removal to succeed. |
ShellKey& HPS::ShellKey::UnsetVertexColorsByRange | ( | size_t | in_start, |
size_t | in_count, | ||
Shell::Component | in_apply_to | ||
) |
Removes the specified range of vertex colors (RGB colors, RGBA colors, or material indices) for the specified shell component starting at the specified offset.
in_start | The offset into the vertices for this ShellKey at which to start removing colors. This value must be such that in_start<point_count for removal to succeed. |
in_count | The number of vertex colors to remove for this ShellKey. This value must be such that in_start+in_count<=point_count for the removal to succeed. |
in_apply_to | The shell component for which to remove the colors. |
ShellKey& HPS::ShellKey::UnsetVertexEverything | ( | ) |
ShellKey& HPS::ShellKey::UnsetVertexNormals | ( | ) |
Removes all vertex normals.
ShellKey& HPS::ShellKey::UnsetVertexNormalsByList | ( | SizeTArray const & | in_vertices | ) |
Removes the vertex normals on a selection of arbitrary vertices.
in_vertices | The indices of the vertices on which to remove the normals. Each index in the array must be such that in_vertices[i]<point_count for removal to succeed. |
ShellKey& HPS::ShellKey::UnsetVertexNormalsByRange | ( | size_t | in_start, |
size_t | in_count | ||
) |
Removes the specified range of vertex normals starting at the specified offset.
in_start | The offset into the vertices for this ShellKey at which to start removing normals. This value must be such that in_start<point_count for removal to succeed. |
in_count | The number of vertex normals to remove for this ShellKey. This value must be such that in_start+in_count<=point_count for the removal to succeed. |
ShellKey& HPS::ShellKey::UnsetVertexParameters | ( | ) |
Removes all texture parameters.
ShellKey& HPS::ShellKey::UnsetVertexParametersByList | ( | SizeTArray const & | in_vertices | ) |
Removes the texture parameters on a selection of arbitrary vertices.
in_vertices | The indices of the vertices on which to remove the texture parameters. Each index in the array must be such that in_vertices[i]<point_count for removal to succeed. |
ShellKey& HPS::ShellKey::UnsetVertexParametersByRange | ( | size_t | in_start, |
size_t | in_count | ||
) |
Removes the specified range of texture parameters starting at the specified offset.
in_start | The offset into the vertices for this ShellKey at which to start removing texture parameters. This value must be such that in_start<point_count for removal to succeed. |
in_count | The number of texture parameters to remove for this ShellKey. This value must be such that in_start+in_count<=point_count for the removal to succeed. |
ShellKey& HPS::ShellKey::UnsetVertexVisibilities | ( | ) |
Removes all vertex visibilities.
ShellKey& HPS::ShellKey::UnsetVertexVisibilitiesByList | ( | SizeTArray const & | in_vertices | ) |
Removes the vertex visibilities on a selection of arbitrary vertices.
in_vertices | The indices of the vertices on which to remove the visibilities. Each index in the array must be such that in_vertices[i]<point_count for removal to succeed. |
ShellKey& HPS::ShellKey::UnsetVertexVisibilitiesByRange | ( | size_t | in_start, |
size_t | in_count | ||
) |
Removes the specified range of vertex visibilities starting at the specified offset.
in_start | The offset into the vertices for this ShellKey at which to start removing visibilities. This value must be such that in_start<point_count for removal to succeed. |
in_count | The number of vertex visibilities to remove for this ShellKey. This value must be such that in_start+in_count<=point_count for the removal to succeed. |