F2I-Consulting / fesapi

API for ENERGISTICS™ data standards (mainly RESQML™), multi-languages (C++, Java, C#, Python)
Apache License 2.0
34 stars 24 forks source link

unsigned int SealedSurfaceFrameworkRepresentation::getRepresentationINDEXOfContactPatch #124

Closed mgimhof closed 5 years ago

mgimhof commented 5 years ago

when deserializing contacts in SealedSurfaceFrameworkRepresentation, I finally arrive at

resqml_wtf.getRepresentationOfContactPatch(contact_index, patch_index);

which returns a the supporting representation. Rather than getting the reference, I would like to get the representation index.

RESQML2_NS::AbstractRepresentation* SealedSurfaceFrameworkRepresentation::getRepresentationIndexOfContactPatch(unsigned int crIndex, unsigned int cpIndex) const { return getContactPatch(crIndex, cpIndex)->RepresentationIndex; }

I have already deserialized this representation and put it into vector whose index matches the representation index.

The workaround is to create a map between abstractrepresentation and index, but I would prefer to be able to continue work with the indices

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

philippeVerney commented 5 years ago

Hi Matthias,

Agreed. I will provide theses functions (probably in addition to the existing ones).