MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / hasColorChannels

Function hasColorChannels

source/MRIOExtras/MRLas.cpp:184–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184bool hasColorChannels( int format )
185{
186 switch ( format )
187 {
188 case 0:
189 case 1:
190 case 4:
191 case 6:
192 case 9:
193 return false;
194 case 2:
195 case 3:
196 case 5:
197 case 7:
198 case 8:
199 case 10:
200 return true;
201 default:
202 return false;
203 }
204}
205
206std::optional<ColorChannels> getColorChannels( const char* buf, int format )
207{

Callers 1

processFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected