VoxelNodeData::VoxelNodeData(Node* owningNode) : AvatarData(owningNode), _viewSent(false), _voxelPacketAvailableBytes(MAX_VOXEL_PACKET_SIZE), _maxSearchLevel(1), _maxLevelReachedInLastSearch(1), _lastTimeBagEmpty(0), _viewFrustumChanging(false), _viewFrustumJustStoppedChanging(true), _currentPacketIsColor(true) { _voxelPacket = new unsigned char[MAX_VOXEL_PACKET_SIZE]; _voxelPacketAt = _voxelPacket; resetVoxelPacket(); }
VoxelNodeData::VoxelNodeData(Node* owningNode) : VoxelQuery(owningNode), _viewSent(false), _voxelPacketAvailableBytes(MAX_VOXEL_PACKET_SIZE), _maxSearchLevel(1), _maxLevelReachedInLastSearch(1), _lastTimeBagEmpty(0), _viewFrustumChanging(false), _viewFrustumJustStoppedChanging(true), _currentPacketIsColor(true), _voxelSendThread(NULL), _lastClientBoundaryLevelAdjust(0), _lastClientVoxelSizeScale(DEFAULT_VOXEL_SIZE_SCALE), _lodChanged(false), _lodInitialized(false) { _voxelPacket = new unsigned char[MAX_VOXEL_PACKET_SIZE]; _voxelPacketAt = _voxelPacket; _lastVoxelPacket = new unsigned char[MAX_VOXEL_PACKET_SIZE]; _lastVoxelPacketLength = 0; _duplicatePacketCount = 0; resetVoxelPacket(); }