![]() |
0.1.33
|
PlantArchitecture.enableLeafAngleDistributionTracking(plant_ids, ...), steering leaf inclination and azimuth toward a prescribed distribution as the plant grows; accepts one plant ID or a sequence to realize the distribution over a canopyPlantArchitecture.enableLeafElevationAngleDistributionTracking() and enableLeafAzimuthAngleDistributionTracking(), steering one of the two angles and leaving the other to the procedural modelPlantArchitecture.disableLeafAngleDistributionTracking() and isLeafAngleDistributionTrackingEnabled()PlantArchitecture.getPetioleLength(plant_id, shoot_id, node_index, petiole_index=None), returning one petiole's current centerline arclength or the phytomer meanPlantArchitecture.scalePetioleMaxLength() and scaleLeafSizeMax(), scaling the fully-elongated petiole length and mature leaf size an organ grows toward while leaving its present size alonePlantArchitecture.setPetioleScaleFraction() and setPetioleAndLeafScaleFraction(), advancing a petiole's length and its leaves' size as independent fractions of fully elongatedPlantArchitecture.setLeafNormal(plant_id, shoot_id, node_index, petiole_index, leaf_index, target_normal), re-aiming one leaf's blade and recording the angles so the orientation survives an XML round tripPlantArchitecture.bendPetioleUnderLeafWeight() and recordPetioleRestShape(), re-bending one petiole under its leaflets' weight and recording the rest shape the bend starts fromPetioleParameters parameters flexibility and flexibility_aging, bending the petiole toward the ground under its leaflets' weight as the leaf grows and the petiole agesLeafParameters parameter intercalary_leaflet_scale, sizing the intercalary leaflets of an interruptedly pinnate compound leafShootParameters parameter leaf_expansion_rate_max and the sentinel LEAF_EXPANSION_RATE_UNSET, decoupling leaf and petiole expansion from internode elongationPlantArchitecture.terminateApicalBud(plant_id, shoot_id), stopping a shoot's apex from adding further phytomers while leaving its vegetative buds untouchedPlantArchitecture.getShootVegetativeBudCount(plant_id, shoot_id, state=None), counting a shoot's axillary vegetative buds, optionally filtered by statePlantArchitecture.getPlantLeafCount(plant_id), returning the number of leaf objects on a plant without materializing the object-ID listBudState, the state of a vegetative or floral budremoveShootVegetativeBuds(), which marks a shoot's vegetative buds BudState.DEAD rather than removing them; the bud entries stay in place and remain countablewhite_balance="auto" now balances against the light reaching the surfaces in view rather than the camera's integrated spectral response, so a scene lit by a spectrally flat source is left unchanged where it was previously tinted; the image is also left unbalanced, with a warning, when the camera sees no light in one of its first three bandsGlobal.evaluateBetaDistributionCDF() and invertBetaDistributionCDF(), the CDF of the Beta leaf-inclination distribution and its inverseGlobal.evaluateEllipsoidalAzimuthCDF() and invertEllipsoidalAzimuthCDF(), the CDF of the ellipsoidal leaf-azimuth distribution and its inverseGlobal.seedRandomGenerator(seed), seeding the process-wide generator behind the native free function randu() (used by LiDAR leaf-area draws and grape berry placement) so those draws can be reproduced; it is distinct from Context.seedRandomGenerator()Global.randu() and Global.randu(imin, imax), drawing from that same process-wide generator; the integer form is uniform over the inclusive rangeGlobal.set_build_plugin_root_directory() and Global.get_build_plugin_root_directory(), which called native bindings that were never implemented and so raised a bare AttributeError; the plug-in build root is a per-model constructor argumentloadOBJ() and loadPLY() from a file that supplies no vertex normals now have them generated from the mesh connectivity and report VertexNormalSource.COMPUTED rather than NONE, so a curved imported surface shades smoothly without calling computePolymeshObjectVertexNormals()Context.calculateAreaIndex(leaf_uuids, wood_uuids=None, ground_area=None), returning the one-sided leaf or plant area index on a ground-area basis – the quantity L in Beer's law; woody primitives count as half their summed one-sided areaaddTile() producing untextured black geometry when given a texture fileaddTile(), addTileObject() and addAdaptiveTileObject() overloads leaving their sub-patches out of getAllUUIDs() until some other operation invalidated the cacherunBand() rebuilding surface radiative properties through an uncached code path on every call after the first, so absorbed fluxes differed between the first and subsequent identical callsreflectivity_<band>/transmissivity_<band> value on the second and later calls to runBand()runBand() throwing "Band has no wavelength bounds" on a camera-only band that had rendered correctly on the first callrunBand() failing on a band whose direct ray count is zero, as an emission-only longwave band set up with setDirectRayCount(band, 0) isCameraProperties.exposure_target, the target median scene luminance for "auto" exposure (default 0.18, the middle-grey convention); a nadir canopy view is darker than a grey card and may need a lower valueCameraProperties.to_array() now returns 11 values; list-form camera properties passed to the wrapper layer must carry the new trailing exposure_targetaddHitPointsBulk(), appending many hits from double-precision position and value arrays in one call; beam directions are derived from the positions when not supplieddeleteHitPoints(first, count), removing a run of hits while preserving the order of the rest, unlike the swap-and-pop single-hit deletecreateHitDataColumn() and getHitDataType(), fixing a per-hit data column's storage type explicitly instead of inferring it from the label, and reporting the current typeHitDataType, the storage type of a per-hit scalar-data column (FLOAT64, FLOAT32, INT32)getHitDataColumnFloat32() and getHitDataColumnInt32(), reading a data column at its own width instead of widening every value to a doublesetTriangulationSink(), handing each scan's triangles to a callback instead of retaining the mesh, so a large cloud triangulates in bounded memorysetSyntheticScanHitSink(), reporting each traced chunk of syntheticScan() as soon as it is stored so the caller can write it out and release itgetScanHitCount(), getScanHitIndices(), getScanHitXYZColumn() and getScanHitDataColumn() (with Float32 and Int32 variants), reading one scan's hits at a cost proportional to that scan rather than to the whole cloudcalculateLeafAreaBlock(), inverting only an inclusive block of the voxel lattice so a large grid can be processed a tile at a timegetCellGlobalIJK() and getGridGlobalCount(), exposing the lattice coordinate of a grid cell and the lattice dimensionsgetHitPointCapacity(), reporting the allocated hit-point capacity that reserveHitPoints() setslastHitFilter() doing the opposite of what it documents: it deleted the last return of every pulse and kept all earlier returns, so a cloud filtered to "last hits only" contained everything except the last hitsgetCellBeamCount() for occluded voxels and made the reported confidence intervals far too narrowisMultiReturnData(), reporting whether any hit has target_count greater than 1, which is the switch triangulateHitPoints() branches oncalculateLeafArea() now accepts a per-grid-cell sequence for Gtheta, one value per cell in grid-cell order, for a leaf-angle distribution that varies with height; like the scalar form it needs no triangulationcalculateLeafArea() returning wrong leaf area for a terrain-following grid built with per-column z offsets, whose beams were attributed to the wrong voxelsgetHitDataColumn() and getHitScanIDColumn() overflowing on Windows for clouds of more than about 2.1 billion entriescalculateLeafArea() now recovers returns that were removed from a cloud from the surviving target_index / target_count values: a return removed from beyond the last surviving return of its pulse is counted as transmitted through every voxel the beam pierces, so a cloud cropped to the voxel grid inverts to the same leaf area density as the full record; a return removed from between two surviving returns cannot be placed and is left outgetCroppedReturnStats(), reporting what that inference did in the last inversion – how many returns were placed before the grid, beyond it, or could not be placedAxisRotation and of the base_rotation arguments of addBaseStemShoot(), appendShoot() and addChildShoot(), which claimed the angles were in degrees when the native code treats them as radians; no behavior changed, but an example rotation of 45 was a rotation of 45 radiansaddShootFromNodePositions(), building one continuous shoot through caller-supplied internode node positions and radii (a QSM, a digitized skeleton, photogrammetry) instead of generating its path; an optional growth_shoot_type_label lets a different shoot type govern how the shoot grows afterwardssetPetioleNodePositions() and setPetioleLeafGeometry(), prescribing a petiole's path and the base position, orientation and size of the leaves on it from measured geometry; prescribed organs are left alone by advanceTime()setPetioleLeafCount(), changing the number of leaves (leaflets) on one petiole of an existing phytomer by rebuilding them procedurallysetShootInternodeLengthMax(), setting the target length of internodes grown at the apex of an existing shoot; the value is not saved by writePlantStructureXML() and must be set again after readPlantStructureXML()setPetioleLeafGeometry() now poses leaves differently: roll, pitch and yaw are applied as intrinsic rotations in the leaf's rest frame, the same way for every leaf, so angles fitted against the previous release must be re-derivedwritePlantStructureXML() and readPlantStructureXML() now preserve petiole paths set by setPetioleNodePositions() and leaf poses set by setPetioleLeafGeometry(), which were previously lost on a round tripwritePlantStructureXML() recording a shoot built by addShootFromNodePositions() with one node per internode segment rather than one per phytomer, which multiplied the phytomer count on reloadreadPlantStructureXML() now accepts files written before <leaf_prototype> was recorded, and files containing a leaf rebuilt by setPetioleLeafGeometry() or setPetioleLeafCount(), which it previously rejected outrightadvanceTime(), which starved and pruned shoots far too early in multi-plant simulationsadvanceTime() results change for plants whose child shoots have a shorter phyllochron than their parent (bindweed, grapevine) and for any plant using enableEpicormicChildShoots()isShootGeometryPrescribed(), reporting whether a shoot was built from prescribed node positionsgetPlantLeafAreas(), getPlantInternodeLengths() and getPlantLeafInclinations(), reporting the leaf area, internode length and leaf inclination the model actually built, one entry per organInflorescenceParameters.inflorescence_maturity_period, letting an inflorescence expand on its own schedule instead of the plant-level fruit-maturity threshold (maize sets its tassel to 6 days)writePlantStructureXML() and readPlantStructureXML() now preserve the shape of a shoot built by addShootFromNodePositions(), which previously came back standing vertical; the phytomer count is still not preserved and a prescribed child shoot still fails to reload, which is pinned as an expected failure until helios-core writes per-phytomer rather than per-segment nodesvegetative_bud_break_probability_*, petiole, leaf or inflorescence parameters on an individual shoot now takes effect; they were previously read from the plant's stored shoot typeappendShoot() segfaulting when the parent shoot had no phytomers, as after pruneBranch() with a node index of 0readPlantStructureXML() failing outright on a plant whose shoot type sets petioles_per_internode = 0, and restoring petioles up to 6 degrees off their grown anglegrapevine_VSP model's trunk_height now defaults to 0.8 m instead of 0.1 m, which left the cordons on the groundEnergyBalanceModel.enableCanopyAirspaceModel(), resolving within-canopy air temperature and humidity from a vertically layered resistance network so the canopy feeds back on the air driving its own transpiration; it cannot be combined with enableAirEnergyBalance() or with the timestep form of run()EnergyBalanceModel.disableCanopyAirspaceModel() and EnergyBalanceModel.setCanopyAirspaceConvergence(), the latter setting the temperature tolerance and iteration cap of the airspace solution (default 0.01 K and 50 iterations)plotUpdate() and printWindow() never showing changes made to a primitive after it was first displayed, so moving, recoloring or retexturing existing geometry – or changing the colormap – had no visible effect until the geometry was rebuiltaddPoint(), and hiding an arbitrary subset of the cloud rather than the points it selectedprintWindow() now renders the frame itself when the one on the GPU is stale, so calling plotUpdate() first is no longer necessarylibegl1 installed alongside libgl1plotInteractive() now raises when the Visualizer was constructed in headless modedisableLinearPipeline() and enableExactColorMode() output is unaffectedvswhere, adding support for Visual Studio 2026Visualizer.h now includes GL/glew.h, by adding the bundled GLEW include directory to the interface targetslibEGL.so.1, for the same reason as libGL.so.1; the wheel test jobs install libegl1doesObjectHaveSharedVertexTopology(), getObjectSharedVertexCount(), getObjectPrimitiveSharedVertexIndices(), getObjectPrimitiveSharedVertexIndicesMulti(), and getPrimitiveSharedVertexIndices(), reporting which member primitives of a compound object meet at each mesh vertexVertexWeldMode enum (WELD_FULL, WELD_CROSS_SECTION_ONLY), selecting whether coincident vertices on different segments of a tube or sphere are welded togethersetPolymeshObjectVertices(), moving every shared vertex of a polymesh in one call so a mesh can be deformed without tearinggetPolymeshObjectVolume() now separates a mesh into its connected pieces and sums the volume of those that are closed, so a solid shape modelled with an open stalk reports the shape's volume instead of raising; a mesh carrying no face table now has its closure checked by matching facets on coincident cornersloadOBJ(), loadXML(), and the loadPLY() variants calling into the native library when their own prototypes had failed to register, which crashed or produced wrong geometry instead of raising NotImplementedErroraddTrianglesFromArrays() now averages per-vertex colors for the whole mesh in one array operation instead of once per triangle, roughly halving the time to import a colored meshselfTest.cpp, alongside physical invariants, atmospheric input validation, and the unit contractgetSunElevation(), getSunZenith(), and getSunAzimuth(), which claimed the returned angle was in degrees when all three return radians as helios-core does; no behavior changed, but code trusting the old docstrings was reading an angle roughly 57x too smallenableCameraFluxSmoothing(), disableCameraFluxSmoothing(), isCameraFluxSmoothingEnabled(), and getCameraFluxSmoothingCreaseAngle(), reconstructing camera images by interpolating outgoing flux across each facet so a coarsely tessellated curved surface renders as a curvegapfillMissesCount(), gap-filling and returning only the number of points added rather than every filled positiongetVirtualMissCount(), hasVirtualMisses(), and materializeMisses(), reporting and collapsing the gap-filled misses that are stored implicitly rather than as hit pointsgetHitXYZColumn() and getHitScanIDColumn()reserveHitPoints(), estimateHitPointMemory(), setMaxHitPoints(), getMaxHitPoints(), and getDefaultMaxHitPoints() for budgeting the memory of a large cloudsetExactPathLengths() and getExactPathLengths(), keeping every leaf-area inversion path-length sample instead of binning themgetScanGridDirection(), returning a scan-grid cell's beam direction from the angular model fitted during gap-fillinggetHitsXYZRGB(), getHitScanIDArray(), getHitMissArray(), and getHitDataAll() becoming quadratic after gapfillMisses(), which made extracting a gap-filled cloud far slower than the per-index getters they were introduced to replacegapfillMisses() never returning for a scan acquired top-down (zenith angle decreasing over the sweep)coordinateShift() and coordinateRotation() leaving gap-filled miss points behind, so a transformed cloud's misses stayed at their original positionsgapfillMisses() is substantially faster and uses far less memory on a scan whose declared grid is much finer than its returns populate, and now reconstructs miss directions from a scan-wide angular model rather than a per-row onegapfillMisses() now raises an error when a scan's returns do not form a consistent angular raster about the stated scan origin, instead of silently reconstructing miss directions from a wrong onegapfillMisses_code hit data value 4 ("extrapolated row") is retired; every gap-filled cell is now reported as 1gapfillMisses() now carry a reconstructed timestampcalculateLeafArea() now raises an error when more returns share a timestamp than the pulse's target count allows, instead of treating them as one beamcalculateHitGridCell() now rejects a hit outside the bounding box of every grid cell before testing cells individually, which speeds up a gap-filled cloud considerablysetLightResponseCurvature() silently discarding its argument, so the light response curvature theta kept its default and A-Q curves were wrong at intermediate lightgetLightResponseCurvature() and getLightResponseCurvatureTempResponse(), reading back the theta a primitive is actually usingLeafPrototype parameters flexibility, flexibility_taper, flexibility_aging, flexibility_aging_max, and longitudinal_curvature_exponent, which droop a leaf blade under its own weight as it growsLeafPrototype.leaf_buckle_length and leaf_buckle_angle, superseded by flexibility; setting either now raises a DeprecationWarninggetCurrentShootParameters() omitting a shoot type's child shoot types, so a read-modify-write through defineShootType() silently erased its branching topologyreadPlantStructureXML() not restoring the mature leaf size, so repeatedly saving and reloading a plant inflated its leaves without boundreadPlantStructureXML() not restoring the scalar peduncle parameters (length, radius, pitch, curvature, roll), so a reloaded inflorescence was redrawn from fresh random valuesreadPlantStructureXML() discarding the internode curvature and yaw perturbations it parsed, so a saved plant's branch tortuosity was lost on reloadreadPlantStructureXML() re-drawing the number of leaflets per petiole instead of using the count in the file, which mispositioned compound leavesreadPlantStructureXML() being pointed in the wrong directionsreadPlantStructureXML() integrating petiole curvature at the petiole's current rather than mature size, rebuilding every unexpanded petiole straighter than it grewwritePlantStructureXML() throwing when writing a petiole carrying exactly two leafletswritePlantStructureXML() emitting pruned shoots as empty elements that the reader rebuilt as live shootsenableGroundClipping() leaving a plant's geometry and structure out of step, so leaf area and carbohydrate transfer still counted organs whose geometry had been deletedreadPlantStructureXML() now clears floral buds a phytomer inherited from its shoot type when the file records none, and rejects a fruit scale factor outside zero to one instead of silently collapsing the fruitwritePlantStructureXML() now records which interchangeable leaf prototype each blade came from and the age of each phytomer, so a reloaded plant keeps its blade shapes and its self-weight droopwritePlantStructureXML() now records the peduncle roll actually used to orient each inflorescence rather than a fresh random drawGenericLeafPrototype() now carry an indexed face set describing their connectivity, so mesh topology queries work on themobject_label primitive data being overwritten with "leaf"prototype_scale rather than each leaf's own maximum sizeCowpeaPod asset is now watertight, so it encloses a volume for the carbohydrate modelcamera_library.xml not being packaged into the wheel, so setCameraSpectralResponseFromLibrary() failed at runtime in an installed wheelgetPolymeshObjectVertices(), getPolymeshObjectFaces(), getPolymeshObjectVertexNormals(), getPolymeshObjectVertexUV(), getPolymeshObjectVertexCount(), getPolymeshObjectFaceCount(), getPolymeshObjectFaceIndexForPrimitive(), and getPolymeshObjectPrimitiveUUIDForFace()setPolymeshObjectTopology(), attaching an indexed face set to a polymesh built with addPolymeshObject()computePolymeshObjectVertexNormals(), computing per-vertex normals by area-weighted averaging and splitting vertices across edges that exceed a given crease angledoesPolymeshObjectHaveVertexNormals() and getPolymeshObjectVertexNormalSource(), reporting whether a mesh carries vertex normals and whether they were authored in the source file or computedisPolymeshObjectClosed(), getPolymeshObjectBoundaryEdges(), getPolymeshObjectConnectedComponents(), and getPolymeshObjectSurfaceArea()doesObjectHaveAnalyticVertexNormals() and getObjectPrimitiveVertexNormals(), returning the true surface normal of the curved shape a Sphere, Tube, or Cone object approximatesVertexNormalSource enum (NONE, AUTHORED, COMPUTED)loadOBJ() now reads vn vertex normal records and all four face vertex reference forms including negative indices; loadPLY() now reads nx, ny, and nz vertex propertiesloadOBJ() and loadPLY() now group the triangles they create into a polymesh object that retains the connectivity of the source filegetPolymeshObjectVolume() now raises an error identifying the number of boundary edges for an open mesh carrying a face table, instead of returning a meaningless numbergetConeObjectNodeRadii() and getConeObjectNodeRadius() now apply the object's transformation, so a scaled cone reports its scaled radiicopyPrimitive() now returns a standalone primitive with no parent object; the copy previously claimed a membership the object did not listloadXML() corrupting compound object ownership when object IDs in the file collide with ones already assigned during the same load, which made objects claim each other's primitives and silently dropped the rightful owners (GitHub issues #18 and #19)loadXML() now fails fast, naming the ID, when two object blocks claim the same object ID or when a primitive names an object ID no block declareswriteXML() recording Tube and Cone nodes and radii with the object transformation already applied, so a transformed tube or cone reloaded with the transformation applied twicewriteXML()/loadXML() restoring object member primitive data onto the wrong sub-primitiveswriteXML() and loadXML() now round-trip polymesh mesh topology and the object transformation matrixuint primitive, object, and global data values above 2147483647 being written by writeXML() but failing to load with a raw stoi: out of range errorrenamePrimitiveData() and duplicatePrimitiveData() leaving the new label unregistered, which made writeXML() fail with "Primitive data does not exist"disableLinearPipeline() restores the previous appearance and isLinearPipelineEnabled() reports the current statesetExposure() and getExposure(), controlling the linear exposure multiplier applied before tone mappingsetPhongMaterial() and getPhongMaterial(), controlling the ambient, diffuse, and specular weights and the specular exponent; the Blinn-Phong highlight was previously absent entirelysetAmbientColors(), getAmbientSkyColor(), and getAmbientGroundColor(), replacing the single constant ambient term with a hemispheric sky and ground-bounce blendenableSmoothShading(), disableSmoothShading(), and isSmoothShadingEnabled(); smooth per-vertex-normal shading is now the default, removing the faceted appearance of tessellated stems, trunks, and fruitisHeadlessMultisamplingActive(), reporting whether headless rendering obtained multisampled framebuffer attachmentsenableExactColorMode() and disableExactColorMode() now also toggle the linear-light pipeline, since tone mapping would alter values read back out of the framebufferphong_ambient, phong_diffuse, phong_specular, or phong_shininess material data with setMaterialDataFloat()printWindow(), plotUpdate(), and buildContextGeometry(), crashing the interpreter instead of raising when passed a destroyed visualizer or when the underlying C++ call failedgetTextboxSize(), setBackgroundTransparent(), setBackgroundSkyTexture(), hideNavigationGizmo(), and showNavigationGizmo() failing to find their packaged assets unless the process happened to be running from the asset directorysetBackgroundSkyTexture() with no argument failing instead of using the default sky texturegetSolarFluxPAR() and getSolarFluxNIR() returning the same value under cloud calibration, which inflated each to the full broadband flux and made them sum to twice getSolarFlux()getDiffuseFraction() saturating at 1 for every real cloud condition under cloud calibration; it is now estimated from the clearness index using the correlation of Erbs et al. (1982)calculateDirectSolarSpectrum(), calculateDiffuseSolarSpectrum(), and calculateGlobalSolarSpectrum() now apply cloud calibration, which they previously ignored while silently returning clear-sky spectraTube object rather than a chain of Cone objects, removing the visible crease at each joint of a multi-segment petiolelistShootTypeLabels(), listing the shoot type labels of the loaded model, a named model, or a plant instancegetAllUUIDs(), getAllLeafUUIDs(), getAllInternodeUUIDs(), getAllPetioleUUIDs(), getAllPeduncleUUIDs(), getAllFlowerUUIDs(), getAllFruitUUIDs(), getAllObjectIDs() and getAllPlantIDs(), which span every plant rather than oneenableAttractionPoints(), disableAttractionPoints(), updateAttractionPoints(), appendAttractionPoints() and setAttractionParameters(), each applying globally or to a single plantadvanceTime() now accepts plant_id, plant_ids or years, so plants can be grown individually or in subsets instead of all togetherbuildPlantInstanceFromLibrary() and buildPlantCanopyFromLibrary() now raise ValueError for a build parameter the loaded model does not read, which the native library silently ignoredgetCurrentShootParameters() now names the valid shoot types when given an unknown labeldefineShootType() discarding the child shoot types of the shoot type it replaces, which silently removed the branching topology of a shoot type that was read back and rewrittenplantarch_collision_sample.py, which the collision documentation referenced but was missingSolarPosition.setSunDirection(SphericalCoord), which overrides the date/time-based solar position calculation with a prescribed sun directioncalibrateTurbidityFromTimeseries() discarding the calibrated turbidity computed by the native library and returning NonePlantArchitecture.makePlantDormant(plant_id), which forces a plant into dormancy immediately rather than waiting on a phenological thresholdPlantArchitecture.breakPlantDormancy(plant_id), which returns a dormant plant to an active statePlantArchitecture.isPlantDormant(plant_id), returning whether all shoots on a plant are dormantPlantArchitecture.pruneBranch(plant_id, shoot_id, node_index), which cuts a shoot at a node and removes everything distal to it, including every child shoot attached at or above that nodePlantArchitecture.harvestPlant(plant_id), which removes a plant's flowers and fruit; leaves are left in placePlantArchitecture.removePlantLeaves(plant_id) and removeShootLeaves(plant_id, shoot_id), which defoliate a whole plant or a single shootPlantArchitecture.removeShootVegetativeBuds() and removeShootFloralBuds(), which kill a shoot's buds so it produces no further laterals or flowersPlantArchitecture.getShootIDsByRank(), getAllDescendantShootIDs(), getTerminalShootIDs(), getShootHierarchyMap(), getChildShootIDs(), getParentShootID(), getShootRank(), getShootDepth(), getPathToRoot() and isShootPruned() for walking a plant's branching hierarchyPlantArchitecture.pruneShootsByRank(), pruneShootSubtree() and pruneTerminalShoots(), which apply pruneBranch() across a branch system and return the shoot IDs cutPlantArchitecture.setPlantMaxAge() and getPlantMaxAge(), controlling the age in days beyond which advanceTime() stops growing a plantdefineShootType() discarding a species' built-in phytomer creation, callback, and leaf, flower and fruit prototype functions when redefining an existing library shoot type, which for maize replaced the ears with a tassel on nearly every nodeVisualizer.enableExactColorMode() and disableExactColorMode(), which disable the default 1.5x color brightening so a primitive's color survives a render round trip unchangedVisualizer.getTextboxSize(), returning the window-normalized extent a text string would occupy without adding it to the sceneVisualizer.displayImageWithBoundingBoxes() and displayImageWithSegmentationMasks(), which display an image with YOLO bounding boxes or COCO segmentation masks drawn over itVisualizer(width, height) rendering at 4 antialiasing samples regardless of the antialiasing_samples argument, which also made it impossible to disable antialiasing; the default is now stated as 4 and 0 disables ittheta coefficient from W/m² to µmol/m²·s PPFDaddPatch(), addTriangle(), addSphere(), addTube() and addBox() by about 3x by resolving the argument signature once when the validation decorator is applied instead of rebuilding it on every callRadiationModel.getAbsorbedFlux() to return a float32 NumPy array (or a dict of them) instead of List[float], so per-primitive arithmetic vectorizes instead of looping in PythonContext.getPrimitiveDataArray() for every data type, which previously read one primitive per native call and swept every UUID a second time to check the label existed; measured 3x for int and double, 14x for the vec/int 2-4 types and 1.6x for stringsContext.getObjectDataArray(objids, label), reading one object-data label across many objects in a single native call (about 6x faster than reading them one at a time)setPrimitiveDataVec2/3/4 and setPrimitiveDataInt2/3/4 rejecting NumPy array rows, which broke reading vector data with getPrimitiveDataArray() and writing it backjson.hpp from the radiation plug-in to corePYHELIOS_DEV_MODE=1 failing to enable mock mode when no native library was present, which made the fix suggested by the "library not found" error impossible to followlibgl1 libsm6 libice6 libx11-6 libxext6 installed, which the README now documents (GitHub issue #17)🚨++ New Plug-in Integrated ++ 🚨
Context.addAdaptiveTileObject(), a tile whose sub-patches are refined by quadtree subdivision so they are finest at a target point and coarser away from it, in plain, color, texture and texture-with-repeat formsAdaptiveTileRefinement type (target, subpatch_size_min, subpatch_size_max, transition_exponent) for specifying that refinementContext.predictAdaptiveTileObjectSubpatchCount(), which reports how many sub-patches a refinement would generate without building any geometrygetAdaptiveTileObjectCenter(), getAdaptiveTileObjectSize(), getAdaptiveTileObjectNormal(), getAdaptiveTileObjectVertices(), getAdaptiveTileObjectRefinement(), getAdaptiveTileObjectBaseSubdivisionCount(), getAdaptiveTileObjectMaxRefinementLevel(), getAdaptiveTileObjectSubpatchSizeRange() and getAdaptiveTileObjectTextureRepeat()Context.getTileObjectTextureRepeat() and Context.getTileObjectEffectiveTextureRepeat(), returning the requested and the actually-applied texture repeat counts of a tile objectgetObjectType() now also returns 7 for an adaptive tile objectsetTileObjectSubdivisionCount() resetting a tile object's texture repeat to 1x1, so a ground tile built with texture_repeat=int2(5,5) rendered as one stretched copy of the image after any subdivision changegetWindowPixelsRGB() can now be called with no argument, returning (pixels, width, height) with the buffer sized from the framebuffer; a caller-supplied buffer that is not 3*width*height for the current framebuffer is now rejected instead of being overflowed by the native callplotOnce() crashing with a segmentation fault on a freshly constructed Visualizer, which previously required calling setBackgroundColor() first as a workaroundVisualizer failing to construct on macOS with a misleading OpenGL error, caused by GLFW changing the process working directory during initialization so that the visualizer's runtime assets could no longer be foundsetColorbarRange() now accepts a degenerate range such as (0, 0), which helios treats as an explicit range, and rejects only an inverted oneparameteroptimization plugin: ParameterOptimization, Parameter, OptimizationResult, and settings dataclasses for GeneticAlgorithm, BayesianOptimization, CMAES, Adam, BOBYQA and SLSQP{name: value}; gradients may instead be estimated by the plugin with finite_difference=TrueKeyboardInterrupt raised inside an objective or gradient now propagate to the caller with their original type, message and traceback instead of being swallowed by ctypes and returned as 0.0ParameterOptimization.runConstrained() for nonlinear inequality constraints, returning a ConstrainedResult (requires SLSQP and all-FLOAT parameters, both checked before the run starts)make_constrained_simulation() to compose separate objective and constraint callables into the single-pass combined simulation formexplore()/exploit() presets are read from the native library rather than transcribed into Python, so they cannot drift from helios-coreINTEGER or CATEGORICAL parameter to any algorithm other than GeneticAlgorithm now raises ValueError; CMAES and BayesianOptimization previously optimized categoricals to 0.0 with no diagnosticParameterOptimization.availableAlgorithms() reports what the build supports, and selecting an unavailable algorithm raises at setAlgorithm() time; NLopt is built without its LGPL-2.1 Luksan sources (HELIOS_NLOPT_LUKSAN=OFF) to keep the distributed library MIT-licensed, which excludes L-BFGSgetSpeciesCoefficients() returning -1 for Vcmax, Jmax, alpha and Rd for every species, after helios-core 1.3.80 made the deprecated scalar coefficient fields sentinel-valuedsetVcmax(), setJmax(), setDarkRespiration() and setQuantumEfficiency() now call their dedicated native entry points, so their dha/topt/dhd arguments take effectFarquharModelCoefficients.setVcmax()/setJmax()/setRd()/setQuantumEfficiency_alpha(), and converted Topt from Celsius to KelvinPhotosyntheticTemperatureResponseParameters now rejects dHd <= dHa when dHa > 0, which previously produced NaN assimilationEmpiricalModelCoefficients now rejects Tref <= Tmin and coefficients where (1+q)*Topt - Tmin - q*Tref is zero, both of which zero the temperature-response denominator that 1.3.80 made activeenableGroundClipping(ground_height=0.0), which removes plant organs falling below the ground plane as geometry is builtdisableMessages()/enableMessages() to suppress the plugin's stdout, including the "BVH not cached" warning emitted while a collision-enabled canopy is still emptydisablePlantPhenology(plant_id), which stops a plant from entering dormancy or scheduling flower and fruit stagesadvanceTime() stripping every leaf and petiole from a manually-built plant (one created with addPlantInstance() and addBaseStemShoot()/appendShoot()/addChildShoot() without calling setPlantPhenologicalThresholds()), which shrank the plant instead of growing it with no error or warningwritePlantStructureXML() now records the plant's phenological thresholds and readPlantStructureXML() restores them, so a reloaded plant no longer silently falls back to the defaultsCameraProperties string fields (manufacturer, model, lens_make, lens_model, lens_specification, white_balance) being replaced by hard-coded C++ defaults; they now reach the camera in addRadiationCamera(), addSIFCamera() and updateCameraParameters(), affecting both rendering and written EXIF metadataenablePragueSkyModel() and updatePragueSkyModel() only working when the process was run from the Helios build directory, which is where the C++ code looks for the Prague sky model datasetsetDynamicTimeConstants() now rejects non-finite time constants in addition to non-positive onesTestObjectBoundingBox is no longer marked xfail. Its eight tests cover a native seeding bug in Context::getObjectBoundingBox() — the box was seeded from the first primitive's first vertex and then continued to the next primitive, so a single-primitive object reported min == max == that vertex, and in a list only the first object was affected, silently losing its extent if it held a unique extreme. The fix shipped in helios-core 7ec2f1d64 (v1.3.79) and the submodule pin has since advanced to v1.3.80, so all eight began XPASSing. They now assert the corrected behavior as ordinary tests: a failure means the core fix was lost, rather than that the pin is stale.Location field validation mirroring the new helios::Location::validate(). Both native parameterized constructors now validate, and Context::setLocation() re-validates on the way in (leaving the Context's location unchanged when a field is out of range). PyHelios checks the same bounds in Location.__init__, so the failure arrives as a ValueError naming the offending value at the point of construction, and behaves identically in mock mode instead of only where a native library is loaded. Ranges: latitude -90 to 90, longitude -180 to 180, UTC offset -14 to 12, altitude any finite value. The UTC range is asymmetric because Helios counts the offset positive moving West, which inverts the real-world UTC-12..UTC+14 span (Kiribati keeps the latter) to +12..-14 — so -14 is legal and +14 is not. The previous code comment asserting that "the C++ `Helios::Location` accepts any latitude" and that bounds were enforced "at the call site" was wrong on both counts and is gone; no bound was enforced anywhere.SolarPosition(context, utc_offset=...) rejecting legitimate UTC offsets of -13 and -14. Both the Python guard and the C wrapper hard-coded a symmetric -12..+12 bound, which disagrees with the -14..+12 range helios-core now states explicitly. Offsets of -13/-14 (real-world UTC+13/UTC+14) were refused with "UTC offset must be between -12 and +12 hours" even though the native library accepts them. Both layers now use -14..+12. Offsets beyond either end are still rejected, and +13/+14 remain invalid.Global.gpuRequiredByEnvironment() and Global.requireGPUOrFail(context_message), wrapping the new core/global.h functions. gpuRequiredByEnvironment() reports whether HELIOS_REQUIRE_GPU is set to anything other than "0", re-reading the environment on every call so a change made through os.environ is observed immediately. requireGPUOrFail() is the counterpart to the HELIOS_NO_GPU veto: called where code would otherwise skip for want of a GPU, it turns that skip into a failure, so a CI runner whose whole purpose is exercising GPU code cannot report success after silently skipping every GPU test. It does not itself probe for hardware — reaching it is taken as proof the caller already found none — so it always raises when HELIOS_REQUIRE_GPU is set, and reports the contradictory HELIOS_REQUIRE_GPU + HELIOS_NO_GPU combination rather than letting one silently win. Both live in the unconditionally-compiled common wrapper, so they are available in any native build regardless of which plugins were selected.Context::setLocation() re-validation by calling the ctypes wrapper directly. Context.setLocation() constructs a Location first, so its Python-side bounds check fires before anything reaches C++ — meaning the native re-validation, and its "leaves the location unchanged on error" contract, would otherwise have had no coverage at all and could have been deleted upstream without breaking a single PyHelios test.skip_or_fail_without_gpu() helper to tests/conftest.py for PyHelios's own GPU test gating. It reports to pytest directly (pytest.skip normally, pytest.fail when HELIOS_REQUIRE_GPU is set) rather than raising a Helios error a test's own try/except could swallow, and needs no native library, so it works in mock mode. skip_without_radiation_backend() now routes through it, meaning an environment that cannot construct a ray-tracing backend at all can no longer pass the radiation suite by skipping all of it. Default behavior is unchanged: without HELIOS_REQUIRE_GPU set, tests skip exactly as before.getPrimitiveDataFloatArray(context, uuids, count, label, out_count), which reads one float label across many primitives in a single native call and returns the values in the order the UUIDs were supplied. Reading N primitives previously meant N ctypes round-trips, which dominates the cost on canopy-sized scenes once the O(N²) validation below is out of the way: at 20,000 primitives a per-UUID loop takes 18.3 ms against 3.8 ms for the single bulk call. Context.getPrimitiveDataArray() routes its float path through it, as does RadiationModel.getAbsorbedFlux(). A missing label names the offending primitive and its index rather than reporting that one of N reads failed. There is deliberately no Python fallback for libraries predating the symbol: it raises NotImplementedError telling the caller to rebuild, so a slow path cannot be reached by accident.Context.getAllPrimitiveInfo() and getPrimitivesInfoForObject() no longer make native calls per primitive. Each was N × getPrimitiveInfo(), and that makes eight native calls (type, area, normal, vertices, color, texture file, texture UV, solid fraction) — 96 round-trips to describe 12 primitives. All eight fields have list-accepting getters backed by native getBatch* calls, so a new Context._batchPrimitiveInfo() fetches each field once for the whole list: 323 ms → 195 ms for 20,000 primitives (1.7×), output field-for-field identical. The remaining cost is Python object construction, not native calls — building ~5 vec3 per primitive plus the dataclass — so it is bounded by the shape of PrimitiveInfo rather than by round-trips. New tests assert no per-primitive getter call is made and that the batched result matches the per-primitive one exactly, including the derived centroid and the optional texture/solid-fraction fields.Context.getPrimitiveDataArray() now runs only on the paths that still read one primitive at a time. The float path checks the first UUID (needed to determine the data type), then reads optimistically and falls back to the per-UUID scan only to name the primitive if the bulk read fails — so the error message is unchanged while the success path costs one native call instead of two per primitive._validate_uuid() checks existence by calling getAllUUIDs() and scanning the returned list, and five call sites applied it one element at a time — so validating N UUIDs meant N native round-trips and N linear scans, O(N²) overall. Context.getPrimitiveDataArray() took 14,597 ms for 20,000 primitives, almost all of it validation; hoisting the lookup brought that to 37 ms (~390× faster), with validation itself down to 2.3 ms, and the bulk getter above takes it to 6.3 ms. writePLY(), writeOBJ() (both branches) and writePrimitiveData() were affected identically whenever a UUIDs list was passed. A new Context._validate_uuids() fetches the UUID list once per call and tests set membership, and the five loops now call it. Per-element check order is unchanged — type first, then existence — so the error raised for any given list is the same one as before, and the lookup is lazy so a leading type error still preempts it. New tests pin the complexity by counting getAllUUIDs() calls rather than timing anything, and assert the error messages are unchanged.Global.gpuRequiredByEnvironment() observes an os.environ change immediately — on Windows it never observes one at all. libhelios.dll links the MSVC C runtime statically (MSVC_RUNTIME_LIBRARY "MultiThreaded"), so it holds a private copy of the environment snapshotted at DLL load, while os.environ writes go through Python's own runtime. HELIOS_REQUIRE_GPU (and HELIOS_NO_GPU) must therefore be set before the interpreter starts on Windows; setting it from Python has no effect on the native function. The conftest.py helper skip_or_fail_without_gpu() reads the environment from Python and so is unaffected. The tests for these bindings were themselves relying on monkeypatch.setenv and would have failed on Windows for that reason, hiding a genuine binding error behind an environment quirk; they now set the variable in a child process's environment, which exercises the bindings identically on every platform and matches what users must actually do. The one case a child process cannot express — that the native function re-reads the environment rather than latching its first answer, the property distinguishing it from the deliberately-cached gpuBackendsDisabledByEnvironment() — keeps its in-process flip and is skipped on Windows.runBand() uploaded the host camera-scatter accumulator — which already holds each primitive's emitted flux σεT⁴ — into the device camera-scatter buffer, but that buffer is a write-only atomicFloatAdd target that nothing reads back during a launch. The download afterwards therefore returned base + new, and runBand() added it on top of the base the host already held, counting the emission twice. What the cameras actually read is radiation_out, uploaded separately, so nothing depended on the camera-scatter buffer holding the base; it is now zeroed (which also allocates it) instead of uploaded. On OptiX 8 the first render of an emission-only scene was accidentally correct — with no sources the buffers are never allocated, making the upload a silent no-op — so only the second and later renders of a camera doubled, and that same accident dropped the diffuse camera-scatter contribution from the first render. On OptiX 6.5 the buffers are allocated eagerly so every render doubled, compounded by a second defect: radiation_in_camera_RTbuffer is zeroed only when the camera ID or launch band count changes and nothing ever reset that latch, so a repeat render of the same camera traced on top of the previous image — combined, ~2× on the first runBand() growing linearly after (~2×, ~4×, ~6×). The Vulkan compute backend was never affected. Present since helios-core v1.3.64. Surfaced as test_update_camera_parameters_honors_exposure reading 541.7 against an expected 270.9 on the GPU CI runner — it was the only PyHelios test that rendered the same camera twice. The new test_repeated_run_band_is_idempotent renders an isolated blackbody patch three times with nothing changed in between and checks every run against the analytic σT⁴/π ≈ 270.9 W/m²/sr rather than against run 1, so a backend that doubled on every run cannot pass by being consistently wrong; manual exposure is used so the comparison is against raw radiance with no auto-exposure gain in between, and the property is asserted directly rather than through updateCameraParameters(), which is not involved.test_writeNormCameraImage writing an image from a camera it never rendered, in a Context holding no geometry at all. The unrendered-camera preflight added in v0.1.26 refuses exactly that, so the test failed on any GPU runner. It now adds a patch and calls updateGeometry() and runBand() before the write.RadiationModel.getAbsorbedFlux(band), which returns a single band's absorbed flux density (W/m², direct + diffuse + scattered) keyed by UUID. runBand() already stores this as radiation_flux_<band> primitive data; this reads it back, so element i always belongs to uuids[i]. Accepts a list of bands (returning a dict keyed by band label) and an optional uuids argument to select and order the primitives queried. Retrieval is linear in the primitive count, pinned by a test that counts getAllUUIDs() calls rather than timing anything. Reported as GitHub issue #10.getTotalAbsorbedFlux() that made the previous per-primitive examples wrong, and reworked those examples onto getAbsorbedFlux(). First, its ordering is not context.getAllUUIDs(): the values follow the radiation model's internal primitive ordering (built during updateGeometry(), grouped by parent object), while getAllUUIDs() iterates a std::unordered_map and returns a hash order — two patches come back as [1, 0]. Pairing the two by index, as the documentation showed, silently attributed each primitive's flux to a different primitive. Second, it sums over every band registered in the model, so a PAR/NIR/SW setup gets PAR + NIR + SW per primitive, which double-counts because SW already spans the other two. Neither applies to getAbsorbedFlux(). No behavior changed in getTotalAbsorbedFlux() itself.getDiffuseFlux(band) reports the band's configured diffuse source flux — a scalar input — rather than per-primitive absorbed diffuse radiation, which it is easily mistaken for.plugin_radiation.md examples off two per-primitive habits they were teaching. getPrimitiveArea() and setPrimitiveDataFloat() both accept a UUID list and cost one native call, but the examples called them per primitive inside loops and generator expressions (3× slower at 20,000 primitives). The area-weighted totals now also accumulate with sum(dtype=np.float64): areas come back as float32, and a plain sum() over them accumulates in float32 and drifts — visibly so on canopy-sized scenes (4.999959783861414 correct vs 5.000024318695068 naive over 2,000 primitives). Per-element values were never affected, only the accumulation.plugin_radiation.md that could never have run: context.getAllUUIDs("patch") (the method takes no arguments) and subscripting its scalar return with context.getPrimitiveData(patch_id, "age")[0] (a float is not subscriptable). Both now use the working forms.RadiationModel.gpuBackendsDisabledByEnvironment(), wrapping the new helios::gpuBackendsDisabledByEnvironment(). It reports whether HELIOS_NO_GPU is set to anything other than "0", which distinguishes an intentional environment veto from genuinely absent hardware — previously the two were indistinguishable from Python, since both simply made probeAnyGPUBackend() return False. The veto makes a GPU-equipped machine behave exactly like one with no compatible hardware; requesting a backend by name bypasses it. The environment is read once and cached for the process lifetime, so changing HELIOS_NO_GPU after the first call has no effect.updateGeometry() is no longer required before runBand(). runBand() now builds the geometry itself before tracing and rebuilds it whenever primitives have been added to or deleted from the Context since the last build. plugin_radiation.md previously stated this was "REQUIRED before `runBand()` — without it the ray trace sees no geometry and every result is 0", which is now false; that and the four-step "correct order" block have been corrected. Calling updateGeometry() explicitly remains supported and is still useful for controlling when the cost of the build is paid.updateGeometry() overloads are no longer interchangeable. A subset passed to updateGeometry(uuids) is never rebuilt automatically, because an automatic rebuild would discard the subset the caller selected — so after modifying Context geometry you must call updateGeometry(uuids) again yourself. Calling updateGeometry() with no argument clears the subset and returns the model to tracking the full Context. This was previously documented as a single "update all vs. update some" knob with no mention of the differing rebuild semantics. PyHelios now tracks subset state and calculateGtheta() refuses to auto-build over a subset, raising instead of silently widening the model back to the full Context — the auto-update path would otherwise have done exactly that, since updateGeometry() clears the native subset latch. runBand() also now records that geometry is loaded, so calculateGtheta() no longer emits a spurious "called before `updateGeometry()`" warning and a redundant full rebuild after a successful runBand().writeCameraImage() and writeNormCameraImage() signal a failed write by returning an empty filename rather than raising, and set no error code. PyHelios converts an empty return into a RadiationModelError naming the camera, the bands, and the output path. Without this, a failed write logged Camera image written to: and returned "" to the caller — reporting success for a file that was never created, which the fail-fast policy forbids. The pre-existing unrendered-camera preflight is therefore now load-bearing rather than a message-improver over an upstream exception, and its docstring says so: removing it on the grounds that 1.3.79 "fixed it upstream" would convert a loud error back into a silent no-op. The remaining native failure mode the preflight cannot see is an unwritable or nonexistent image_path, which the new check covers.updateCameraParameters() discards the camera's rendered image data when the resolution changes. The per-pixel buffers are sized to the resolution the camera was rendered at, so they are cleared rather than reinterpreted at the new size, and the camera must be re-rendered with runBand() before its image can be written again. Changing any other parameter leaves image data intact. This was undocumented at every layer, and the method's own docstring example changed the resolution to 1920x1080 — exactly the case that triggers the discard — without mentioning that a re-render was then required. Documented in the Python API, the ctypes wrapper, the C header, and plugin_radiation.md, with a new test asserting that a same-resolution update preserves pixel data while a resolution change invalidates it and a fresh runBand() restores it at the new size.probeAnyGPUBackend() probes at most once per process and caches the result (helios-core 1.3.79), so repeated calls are cheap and never re-enter the GPU driver, but a driver that becomes usable after the first probe is not picked up until the process restarts. Also documented that it returns False when HELIOS_NO_GPU is set regardless of the hardware present, and that it is the PyHelios equivalent of the native RadiationModel::isGPUBackendAvailable() — which 1.3.79 reduced to a pure delegate to the same probe, so no separate binding is warranted.updateCameraParameters() C header, which documented its camera_properties argument as "9 floats" while every layer passes and reads 10 (resolution x, resolution y, focal_plane_distance, lens_diameter, HFOV, FOV_aspect_ratio, lens_focal_length, sensor_width_mm, shutter_speed, camera_zoom). The count is now correct and the fields are named. A documentation error only — the code was always consistent at 10.getPlantLeafObjectIDs(plantID) and getPlantLeafBases(plantID), wrapping native getters that had no PyHelios binding. The first returns the object ID of every leaf on a plant (a subset of getAllPlantObjectIDs(), so usable with any Context object query); the second returns each leaf's attachment base position — where it joins its petiole, not the leaf centroid — as a list of vec3. The two results must not be paired positionally: they are built by independent traversals of the shoot tree, so element i of one is not guaranteed to describe the same leaf as element i of the other. helios-core 1.3.79 added a protected getPlantLeafObjectIDsAndBases() that gathers both in a single traversal for exactly this reason, but it is not public and so cannot be wrapped; the caveat is documented on both methods and in plugin_plantarchitecture.md.getPlantFruitObjectIDs(plantID), getPlantPetioleObjectIDs(plantID), getPlantPeduncleObjectIDs(plantID) and getPlantFlowerObjectIDs(plantID) — completing the native family alongside the existing getPlantLeafObjectIDs(). Each returns object IDs that are a subset of getAllPlantObjectIDs(), and the five sets are mutually disjoint, so they partition a plant by organ type and work with any Context object query. An empty list is a normal result, not a failure: the reproductive organs exist only once a plant reaches the corresponding growth stage, so a plant built at a young age returns [] for them, and flowers additionally disappear as they set fruit — maize at age 40 reports 10 fruit and 0 flowers. Callers must not treat an empty result as an error. Reported as GitHub issue #6, which named getPlantLeafObjectIDs() and getPlantFruitObjectIDs() as the documented C++ organ-level queries missing from the Python bindings._getPlantOrganObjectIDs()), differing only in the native symbol they call, so their availability guard, plant ID validation and buffer unpacking cannot drift apart. Because they are otherwise identical, a copy-paste leaving the wrong symbol in place would be invisible to a per-getter test — the new test_organ_object_ids_are_mutually_disjoint compares all five against each other to catch exactly that, and asserts the leaf/petiole/fruit sets are non-empty first so the comparisons cannot pass vacuously against two empty sets. Verified by mis-wiring the petiole getter to the leaf symbol and confirming the test fails.Shoot::internode_tube_objID's sentinel value for "no internode tube object exists" is now the named constant Shoot::no_internode_tube_objID (4294967294) in helios-core 1.3.79, and is reset on deletion so a freed object ID is not handed back to callers. No PyHelios change is required: Shoot is not exposed and no wrapped API returns an internode tube object ID, so the sentinel cannot reach Python. Noted here because any future wrapper that does return one must translate it (ideally to None) rather than pass it through as a valid object ID.build_helios --clean reporting Build directory exists, skipping cleanup, which read as though the requested clean had silently done nothing. The clean was in fact performed: clean_build_artifacts() removes the build directory, but generating plugin_config.cmake recreates it before setup_build_directory() runs, and that function inferred "a clean was skipped" from mere directory existence. It now tracks whether a clean actually ran and reports Build directory cleaned, rebuilding from scratch, or Reusing existing build directory (pass --clean to wipe it) when none was requested. Messaging only — no change to what is removed. This matters because CLAUDE.md requires a full clean rebuild before declaring any native-interface change verified, and the old message gave positive evidence that the requirement had not been met.RadiationModel, EnergyBalanceModel, PhotosynthesisModel, StomatalConductanceModel, BoundaryLayerConductanceModel, LeafOptics, SolarPosition, PlantArchitecture, WeberPennTree, Visualizer, and LiDARCloud's collision detection) passes the raw native Context* to a C++ constructor that stores it for the model's lifetime. Destroying the Context first — by leaving its with block, or by letting a temporary Context (e.g. visualizer.buildContextGeometry(make_scene())) be garbage collected — freed that memory while the model still held the pointer, so the next call segfaulted the interpreter. Models now retain a Python reference to the owning Context and check liveness before every native call, raising an actionable RuntimeError instead of crashing. LiDARCloud additionally rejects enableCollisionDetection() with a second, different Context, which the native side silently ignored (it keeps whichever Context it was first given).vec4 satisfied a vec3 attribute check and reached C++ as a wrong-length buffer (to_list() returns 4 elements), and an RGBAcolor satisfied an RGBcolor check with its alpha channel silently discarded. Both now raise ValidationError.Context.getPrimitiveInfo() no longer swallows every exception from the texture and solid-fraction getters. Only NotImplementedError (the getter absent from an older library build) leaves those fields as None; genuine native errors propagate, and each getter is attempted independently so one failure cannot suppress the others.Context.rotateObject(objID, angle, "z") now rotates in the opposite direction than it did previously. The native CompoundObject::rotate() "z" string-axis branch alone negated the rotation angle, disagreeing with rotatePrimitive() and with the vec3-axis rotateObject() overload; the negation is removed so all three rotation paths share one handedness. PyHelios passes the angle through unchanged at every layer, so this lands directly in the Python API. Any code that compensated for the old flipped azimuth by negating its angle is now rotating the wrong way and must drop the compensation.getObjectBoundingBox() returning a degenerate box for a single-primitive object. The native implementation seeds the box from the first primitive's first vertex and then continues to the next primitive, so the remaining vertices of that primitive are never compared against the seed. An object made of one primitive — a 1x1 tile, for example — therefore reports min == max equal to its first vertex, and any object list whose first object holds a unique extreme loses that extreme. getObjectBoundingBox([]) likewise returns a plausible-looking (0,0,0) to (0,0,0) box rather than failing, because the Python wrapper zero-initializes its output buffers; once fixed, a request covering no primitives raises instead. The fix belongs to the Helios repository, not to PyHelios (PyHelios must never patch the vendored helios-core submodule); it is applied there in core/src/Context.cpp with three accompanying core self-tests, and lands in PyHelios when the submodule pointer advances past v1.3.78. The new PyHelios tests assert the fixed behavior and are marked xfail until then. The pre-existing bounding-box tests — in both repos — passed only because they used a box object, whose six faces cover each other's extremes, masking the skipped face.rotatePrimitive() and rotateObject(), which previously had none across their 14 wrapped entry points — the reason the z-axis handedness change above would have passed the suite unnoticed. The new tests pin the rotation convention (a +90° z-rotation maps (x,y) → (y,−x)) and assert that the string-axis, vec3-axis, primitive, and object paths all agree, so a future divergence in any one of them fails loudly. Verified by re-introducing the old negation and confirming only the z case goes red.about_origin=True on rotateObject() and scaleObject(). Both docstrings claimed the operation was about the global origin (0,0,0); the native rotateObjectAboutOrigin()/scaleObjectAboutOrigin() actually use the object's own stored object_origin, so an object built away from the world origin spins or scales in place rather than orbiting (0,0,0). Only the documentation was wrong — no behavior changed. To rotate about a specific point, pass it as origin.addDisk()/addDiskObject() (ndivs=int2(nr, ntheta) with ntheta >= 2) no longer leaves the first triangle of each outer ring stranded at the world origin, and getDomainBoundingBox(uuids=[...]) no longer returns an under-sized upper bound when the same vertex also set a new lower bound on that axis.Context.__del__ printing a spurious traceback at interpreter exit. A Context still alive when the interpreter shuts down is finalized after module globals and the import machinery have been torn down, so context_wrapper.destroyContext could already be gone. The destructor called it unguarded and then ran import warnings inside its except handler — but importing is no longer possible at that point, so the handler itself raised and CPython printed Exception ignored in: <function Context.__del__> with a traceback pointing at the import line, hiding the original error. warnings is now imported at module scope and the handler cannot raise. This was cosmetic teardown noise rather than a leak (the OS reclaims the allocation at process exit either way), but it produced an alarming and misleading traceback. Reported as GitHub issue #4.writeCameraImage() reporting invalid map<K, T> key for an unrendered camera. Camera pixel data is populated only by runBand(), and only for the bands passed to that call and for cameras that already existed when it ran. Writing an image for a camera/band outside that set reached std::map::at in the native library and surfaced as a bare STL message with no indication of the cause. writeCameraImage() and writeNormCameraImage() now check the precondition first and raise a RadiationModelError naming the camera, the band, and the missing runBand() call. The underlying library guard lands in helios-core v1.3.79, but as an empty-string return rather than an exception (see v0.1.27), so this check remains necessary there too, not merely useful for earlier cores. Reported as GitHub issue #4.updateGeometry() → runBand() → write) and corrected two examples in plugin_radiation.md that would fail if copied: the time-series capture loop never called runBand(), and the complete-pipeline example wrote images from two cameras it never created.addSunSphereRadiationSource() placing the sun in the wrong position. The Python API documents zenith/azimuth in degrees, but the C interface passed them unconverted into SphericalCoord(radius, elevation_radians, azimuth_radians) — wrong units and wrong angle convention. An overhead sun (zenith=0) yielded 0 W/m² absorbed instead of the source flux. Degrees are now converted to radians and zenith to elevation; absorbed flux follows the cosine law.wavelength_min/wavelength_max arguments to addRadiationBand() and copyRadiationBand(): nanometers, not micrometers (the values were always passed through unscaled, so no behavior changed).getTotalAbsorbedFlux() returns flux density in W/m² per primitive, not power in watts — so sum() over the result is not physically meaningful; weight by getPrimitiveArea() to obtain watts.emission_enabled_<band> global data that helios-core 1.3.78's runBand() writes for every band (uint, 1/0). It records which band governs longwave emission, which the energy balance model reads to select the emitting band's emissivity. It needs no new wrapper — the existing Context.getGlobalData() uint path returns it.emissivity_[*] input primitive data, which was missing from the PyHelios input-data table entirely. helios-core 1.3.78 also defined which emissivity is used when the energy balance runs over multiple bands: the emissivity of the single band for which emission is enabled, falling back to the first emission-enabled band (with a warning) if several emit, and to the first band that defines an emissivity when no emission information is available — the case a script hits when it sets radiation fluxes manually without running the RadiationModel.addGrid() accepts an optional column_z_offsets argument that shifts each vertical column of voxels in z by a per-column amount, so a grid can track an external terrain surface such as a DEM. The offsets are row-major as [j*ndiv[0] + i], one value per (x,y) column, and are validated to have length ndiv[0]*ndiv[1]. Omitting the argument (or passing all zeros) builds the axis-regular grid exactly as before.getCellRotation(), which reports a grid cell's azimuthal rotation about the z-axis in degrees. This getter was previously unwrapped in PyHelios; helios-core 1.3.78 also changed its native units from radians to degrees, so it now matches the units expected by addGrid().getCellCenter() now returns the true world-space center of a grid cell. For a grid built with a non-zero rotation, the native library previously returned the raw un-rotated lattice center, which did not lie in the same frame as the hit points, scan origins, or grid bounding box; it is now rotated about the grid anchor to match. Un-rotated grids are unaffected. Code that consumed getCellCenter() for a rotated grid and compensated for the missing rotation must drop that compensation.addGrid() rotation argument: degrees, not radians. The native addGrid() converts degrees internally, so a caller who followed the previous documentation and passed radians got a grid rotated by roughly 1/57th of the intended angle. No behavior changed — the value was always passed through unscaled — but the documentation was wrong. Note that addGridCell() genuinely does take radians (it stores the angle directly), so the two entry points differ; this asymmetry is inherited from the native API and is now documented on both methods.getPlantAge(), getPlantHeight(), and sumPlantLeafArea() now raise on failure instead of returning -1.0, which was indistinguishable from a real measurement.wehrli.dat, abscoef.dat) being omitted from wheels, which made calculateSpectralIrradiance() fail on installed packages. The assets are now packaged, with the source path assets/ssolar_goa flattened to the plugins/solarposition/ssolar_goa location the C++ runtime opens.setTileObjectSubdivisionByAreaRatio() now validates that area_ratio >= 1 (raising ValueError otherwise) and its documentation is corrected: area_ratio is the ratio of the whole tile's area to an individual sub-patch's area (i.e. the approximate sub-patch count), not the sub-patch-to-tile fraction.addScanRisley() registers a non-repetitive rosette scan from a stack of rotating wedge prisms (the new RisleyPrism type — wedge_angle, refractive_index, rotor_rate, phase), a refractive index of air, a pulse repetition rate, and a 6-DOF trajectory (quaternion or Euler). The per-pulse beam direction is computed by full Snell's-law refraction through the prisms; the scan is stored as a single-row table with ScanMode.RISLEY_PRISM / ScanPattern.RISLEY_PRISM (new enum values). Query it with getScanRisleyPrisms() and getScanRisleyRefractiveIndexAir().isGPUAvailable() (compiled with CUDA, a device present, and HELIOS_NO_GPU unset) and isGPUAccelerationEnabled() (whether GPU acceleration is currently toggled on).syntheticScan(): setSyntheticScanProgressPointer(ctypes.c_int) writes the 0-based index of the scan currently being ray-traced (set to getScanCount() when finished), and setProgressCallback(fn) invokes a Python callback with (progress_fraction, message) during the scan.setSyntheticScanMemoryBudget(bytes) to cap the transient ray-tracing scratch buffers syntheticScan() allocates when fanning each pulse into sub-rays, so a high-resolution scan is traced in chunks sized to the budget instead of one OOM-prone batch, plus getSyntheticScanMemoryBudget() to read it back (0 = automatic, path-dependent: 8 GiB on a GPU build, 4 GiB otherwise). The budget bounds only the live trace buffers, not the output cloud.getHitDataColumnIndex(label) to resolve a hit-data label to its internal column slot (−1 if never set), for repeated bulk access without re-resolving the label by string.setScanDetectionThreshold() (0 disables suppression, reproducing the previous "report every return" behavior).optionalOutputObjectData(labels) to enable additional per-object output fields to be written onto the Context's compound objects after building (e.g. age, rank, plantID, plant_height, phenology_stage, leafID, fruitID, carbohydrate_concentration, or "all"); accepts a single label or a list.RandomParameter (now an alias for RandomParameterFloat) and RandomParameterInt are the typed classes from pyhelios.plant_architecture_params and now return RandomParameterFloat/RandomParameterInt objects (round-trippable via to_dict()) rather than the previous plain dicts, with their factory methods (constant/uniform/normal/weibull and constant/uniform/discrete) now validating their arguments. defineShootType() accepts these objects embedded directly in a raw parameter dict.addScanSpinning() registers a continuously-rotating multibeam sensor (Velodyne/Ouster/Hesai) from per-channel elevation angles, an azimuth resolution, a pulse repetition rate (PRF), and a 6-DOF trajectory — deriving the azimuth grid, rotation rate, and revolution count internally — and addScanMovingRaster() sweeps a fixed angular fan along a quaternion trajectory. Both set a self-describing acquisition mode.addScanMultibeam() (breaking change). In helios-core 1.3.76 a spinning scan must be created through the physical-parameter path; the legacy grid constructor that addScanMultibeam() wrapped produces a non-self-describing STATIC_RASTER-mode scan that no longer round-trips through XML as a spinning scan. Use addScanSpinning() instead (pass per-channel elevation angles, an azimuth_step, a pulse_rate_hz, and a trajectory in place of zenith angles, Nphi, and phi_range).getScanMode() (new ScanMode enum: STATIC_RASTER/MOVING_RASTER/SPINNING), getScanStepsPerRev(), getScanRotationRate(), and getScanRevolutions().setScanReturnMode()/getScanReturnMode() (new ReturnMode enum: MULTI/SINGLE), setScanSingleReturnSelection()/getScanSingleReturnSelection() (new SingleReturnSelection enum: STRONGEST/FIRST/LAST/STRONGEST_PLUS_LAST), setScanMaxReturns()/getScanMaxReturns(), setScanPulseWidth()/getScanPulseWidth(), setScanDetectionThreshold()/getScanDetectionThreshold(), and a return_mode argument on syntheticScan() that overrides the stored mode for one call. The new echo_width per-hit data field (return range spread) is now available.getHitDataColumn(label) / getHitDataColumnArray(label), which use the native cache-linear column storage and return full float64 precision (with an absent_value placeholder), versus the float32 of getHitDataAll/getHitDataArray.setExternalTriangulation(vertices, scan_ids) to drive leaf-area inversion from an externally-supplied mesh (a re-used Helios triangulation or a per-scan open3d Ball-Pivot mesh) instead of the internal Delaunay triangulation, accepting the (T,9)/(T,3,3)/flat layouts getTriangleVerticesAll() exports plus a per-triangle source scan ID (required for the G(theta) ray direction); calculateLeafArea() then runs unchanged.syntheticScan() gained a cancel_flag argument (a caller-owned ctypes.c_int) that aborts a long scan between pulses when set non-zero from another thread, returning whatever was scanned so far.pyhelios.plant_architecture_params) mirroring the nested C++ ShootParameters/PhytomerParameters/LeafPrototype structures (plus flat CarbohydrateParameters/NitrogenParameters), with RandomParameterFloat/RandomParameterInt distribution specs and from_dict()/to_dict() round-tripping to the plain-dict JSON transport. getCurrentShootParameters() gained a return_typed keyword to return a ShootParameters object, and defineShootType() now accepts either a nested dict or a ShootParameters. getCurrentShootParameters() now also surfaces the full phytomer_parameters sub-structure (internode/petiole/leaf/peduncle/inflorescence and the leaf prototype).getDefaultCarbohydrateParameters()/setPlantCarbohydrateParameters() and getDefaultNitrogenParameters()/setPlantNitrogenParameters(). The native API has no per-plant getter for these, so the get methods return the C++ default-constructed template (flat dict or typed object via return_typed) to modify and apply to a plant instance.setPlantPhenologicalThresholds() gained an is_evergreen keyword (default False) that retains leaves through dormancy instead of shedding them at senescence, matching the helios-core 1.3.76 signature.setCancelFlag(cancel_flag) to register a caller-owned ctypes.c_int that, when set non-zero from another thread, stops the canopy-build and advanceTime() growth loops between plants/timesteps (returning whatever was built so far) — so a long generation can be aborted mid-build.addRadiationCamera() and updateCameraParameters() read the exposure field ("auto"/"manual"/"ISOXXX") from CameraProperties and pass it to helios-core, rather than always forcing "auto".writePrimitiveDataLabelMap() and writeObjectDataLabelMap() write a camera's per-pixel primitive/object data values (float/double/uint/int) to a row-major ASCII text file (background pixels get a configurable padvalue, default NaN), plus getPrimitiveDataLabelMap()/getObjectDataLabelMap() convenience wrappers that return the map directly as a 2D (height, width) NumPy array (written to a temp file and loaded, no file left on disk).calculateGtheta() now calls updateGeometry() automatically (with a warning) if the scene geometry hasn't been pushed to the radiation model yet, and raises an explicit RuntimeError when the G-function is undefined (no geometry / zero leaf area) instead of silently returning NaN.getHitsXYZRGBArrays() (returns (N,3) float32 coordinates and colors), getHitDataArray(label) ((N,) float32, NaN where the label is absent), getHitScanIDArray() ((N,) int32), and getHitMissArray() ((N,) int32, 1 = miss).addScanMoving() registers a scan driven by a timestamped 6-DOF pose trajectory (per-sample position plus orientation as quaternions or roll/pitch/yaw Euler angles), a sensor lever arm and boresight misalignment, and a pulse rate. The synthetic-scan generator emits a per-pulse origin and direction interpolated along the trajectory; every hit/miss records its own origin, timestamp, and firing index.getHitOrigin(index) returning the per-pulse beam-emission origin of a hit (the moving-platform origin, or the static scan origin as a fallback).addScan()/addScanMultibeam() gained a scan_azimuth_offset keyword (radians; default 0 = no offset), queryable via getScanAzimuthOffset(). It applies a right-hand rotation about the world +z axis on top of the azimuth sweep.calculateLeafArea() gained an optional Gtheta argument: when supplied (with min_voxel_hits and element_width), leaf area is computed via a triangulation-free, beam-origin-aware inversion using the caller-supplied G(theta). This is the supported leaf-area path for moving-platform scans, whose pulses cannot be triangulated.setPrimitiveData*()/setObjectData*() now accept a list of values (one per UUID/objID) to assign a distinct value to each element in a single bulk call, complementing the existing scalar-broadcast behavior (a scalar still applies the same value to every ID). Covers all 11 data types (int, uint, float, double, string, vec2, vec3, vec4, int2, int3, int4).overridePrimitiveTextureColor() and usePrimitiveTextureColor() now accept a list of UUIDs, applying the override/restore to all of them in one bulk call (previously single-UUID only).incrementPrimitiveData() gained an optional data_type keyword (‘'int’/'uint'/'float'/'double'`) to target a specific field type, and now supports unsigned-int and double fields in addition to the existing int/float overloads.LiDARCloud.addHitPointsWithData() for bulk in-memory hit ingestion carrying a per-hit data map: like addHitPoints() but populates each hit's named-scalar data map (the in-memory equivalent of what the ASCII loader does for non-standard columns), so values like timestamp/target_index/target_count land in the map for multi-return grouping. Uses the full SphericalCoord (radius retained for Beer's-law path length).LiDARCloud.getTriangleVerticesAll() to bulk-export every triangulated triangle's three vertices (and source scan ID) in a single call as flat numpy arrays, reading directly off the LiDARcloud and bypassing the Context round-trip and per-triangle vertex loop.LiDARCloud.getTriangulationStats() returning the filter diagnostics from the most recent triangulateHitPoints() call as a dict (candidates, dropped_lmax, dropped_aspect, dropped_degenerate); each dropped triangle is attributed to one primary reason so candidates == getTriangleCount() + dropped_lmax + dropped_aspect + dropped_degenerate, distinguishing a data-limited mesh (few candidates) from a filter-limited one (many candidates dropped by Lmax/aspect).calculateLeafArea() fails fast with an explicit error if the point cloud contains no misses (fired pulses that returned nothing), rather than silently producing biased leaf area density. LiDARCloud.syntheticScan() now records misses by default for discrete-return scans as well as full-waveform (the discrete path is routed through a new miss-aware native overload honoring scan_grid_only/record_misses); import workflows can synthesize misses with gapfillMisses(). Added hasMisses(), isHitMiss(index), and the static getMissDistance() (the LIDAR_MISS_DISTANCE constant) to inspect misses.addScan() gained scan_tilt_roll/scan_tilt_pitch keyword arguments (radians; default 0 = level), queryable via getScanTiltRoll()/getScanTiltPitch(). Models the residual tilt of the scanner spin axis away from plumb.addScanMultibeam() registers a rotating multi-channel scan from a list of per-channel zenith angles, and getScanPattern() (returning the new ScanPattern enum: RASTER/SPINNING_MULTIBEAM) and getScanBeamZenithAngles() query the pattern.calculateLeafArea() gained an optional element_width argument that, alongside the leaf-area estimate, computes the sampling variance, exposed through getCellLADVariance(), getCellBeamCount(), getCellRelativeDensityIndex(), getCellMeanPathLength(), single-voxel getCellLeafAreaConfidenceInterval(), group-scale getGroupLADConfidenceInterval() (recommended), and the exportLeafAreaUncertainty() file export.exportPointCloud() gained a write_header argument (default True): exports now prepend a #-prefixed column-name header line (CloudCompare convention) that round-trips through loadXML().getAllShootIDs()/getPlantShoot(): PlantArchitecture.getAllShootIDs() returns the contiguous 0-based shoot IDs for a plant (shoot 0 is the base stem), getShoot() returns a shoot's topology dict (rank, parent_shoot_id (-1 for the base stem), parent_node_index, node_count), getShootChildIDs() returns its child shoot IDs, and getShootInternodeVertices()/getShootInternodeRadii() return its woody internode polyline geometry.clearAllPrimitiveData(label) and clearAllObjectData(label) to remove a named data field from every primitive/compound object in the Context (including hidden ones) and release the registered data type for that label, complementing the existing per-UUID/per-objID clearPrimitiveData()/clearObjectData().deleteTimeseriesDataPoint(date, time, label=None) to delete a single timeseries data point at a given date/time — for one variable when label is given, or across all variables when label is None.Location gained an altitude field (meters above sea level, default 0.0); setLocation() accepts an optional altitude in its float form, getLocation() now returns it, and make_Location() accepts an optional 4th argument. Existing 3-argument usage is unchanged. Note Helios's non-standard longitude convention (+W / −E), which is auto-flipped to the standard +E convention when written into camera EXIF metadata.CameraProperties gained a manufacturer field (helios-core v1.3.73 maps it to the EXIF camera Make tag; empty ⇒ "Helios"). Like the other CameraProperties string fields, it is exposed on the Python class for forward compatibility but is not yet plumbed through to the native camera. Camera images written via writeCameraImage() embed EXIF/XMP metadata (camera intrinsics, orientation, and GPS derived from the Context Location) automatically on the native side.LiDARCloud.addScan() gained optional range_noise_stddev (meters) and angle_noise_stddev (radians) arguments that drive realistic anisotropic positional error during syntheticScan() (along-beam range noise and across-beam beam-pointing jitter). Both default to 0.0 (disabled), preserving prior behavior. Query them with getScanRangeNoiseStdDev(scanID) / getScanAngleNoiseStdDev(scanID).exportScans(filename) to write all scans as an XML metadata file plus one ASCII data file per scan (auto-named <base>_<scanID>.xyz), re-loadable with loadXML().doesObjectExist(), doesObjectContainPrimitive(), doesMaterialDataExist(), objectHasTexture(), isPrimitiveDirty(), areObjectPrimitivesComplete(), getJulianDate(), getMaterialCount(), getObjectArea(), getObjectPrimitiveCount(), getPolymeshObjectVolume(), getMaterialIDFromLabel(), getPrimitiveMaterialID(), getGlobalDataVersion(), getPrimitiveParentObjectID(), getObjectTextureFile(), listAllPrimitiveDataLabels(), getLoadedXMLFiles(), printObjectInfo(), printPrimitiveInfo(), setObjectDataFromPrimitiveDataMean(), renameMaterial(), renamePrimitiveData(), clearMaterialData(), plus enable/disablePrimitiveDataValueCaching() and enable/disableObjectDataValueCaching()getDeletedUUIDs(), getDirtyUUIDs(), getUniquePrimitiveParentObjectIDs(), getObjectAverageNormal(), plus setObjectAverageNormal(), setObjectOrigin(), setPrimitiveAzimuth(), setPrimitiveElevation(), setTriangleVertices(), setPrimitiveNormal() (single/batch), and setPrimitiveParentObjectID() (single/batch)int, uint, float, double, string, vec2, vec3, vec4, int2, int3, int4): per-type explicit setMaterialData<Type>() and getMaterialData<Type>() methods, a unified setMaterialData()/getMaterialData() dispatcher with auto-detection via getMaterialDataType(), and getUniquePrimitiveDataValues()/getUniqueObjectDataValues() (int/uint/str)(4,4) float32 ndarrays (also accepting nested lists or flat 16-float lists): get/setObjectTransformationMatrix() and get/setPrimitiveTransformationMatrix() with single/batch dispatch, plus domain-level getDomainBoundingBox() and getDomainBoundingSphere() with optional UUID filteringsetTubeNodes(), setTubeRadii(), scaleTubeGirth(), scaleTubeLength(), pruneTubeNodes(), appendTubeSegment() (color or texture+uv kwargs), addPolymeshObject(), setObjectColor() (RGB/RGBA, single/batch), overrideObjectTextureColor()/useObjectTextureColor(), markPrimitiveDirty()/markPrimitiveClean(), setTileObjectSubdivisionCount(), and setTileObjectSubdivisionByAreaRatio()cleanDeletedUUIDs() and cleanDeletedObjectIDs() (returning new lists, not mutating input), writeXML()/writeXML_byobject() for XML export with optional UUID filtering, randu()/randn() random-number draws (uniform with optional float or int range; normal with optional mean/stddev), and geographic setLocation()/getLocation() returning the new Location dataclass (latitude, longitude, UTC offset)generateColormap(name, n_colors) returning an RGBcolor list, generateTexturesFromColormap() returning generated file paths, and getPrimitiveTextureTransparencyData() returning an Optional[np.ndarray] 2D bool maskdeleteTimeseriesVariable(label) to remove a single timeseries variable and all of its data points (complements the existing clearTimeseriesData() and updateTimeseriesData()).LeafOpticsProperties with two optional Fluspect-B SIF parameters: V2Z (violaxanthin↔zeaxanthin de-epoxidation state, default 0.0) and fqe (intrinsic fluorescence quantum-efficiency scalar, default 1.0). They are ignored by the pure PROSPECT reflectance/transmittance calculation; the radiation plugin's SIF pipeline reads them when active. The flat float-array layout grew from 9 to 11 entries; LeafOpticsProperties.from_list() still accepts both lengths for backward compatibility with serialized data.setModelTypeC4() and the von Caemmerer (2021) steady-state C4 model — setC4CoefficientsFromLibrary() / getC4CoefficientsFromLibrary() (species: SetariaViridis_vC2021, GenericC4_vC2000, Maize_Massad2007), setC4ModelCoefficients() / getC4ModelCoefficients() over a 43-float coefficient array (5 temperature-responsive rates × 4 floats: Vpmax/Vcmax/Jmax/Rd/gm; 5 K-25 + 5 dH kinetic constants; 13 user-tunable scalars), and setCm() for direct mesophyll CO₂ prescription (testing/validation). Both setC4CoefficientsFromLibrary() and setC4ModelCoefficients() accept a material_label keyword to apply coefficients per-material rather than per-UUID.setFarquharMesophyllConductance() to configure C3 mesophyll conductance gm (mol CO₂ / m² / s / bar) with optional temperature response. Default behaviour unchanged: gm = +∞ reduces Cc to Ci (legacy Farquhar).FarquharModelCoefficients flat array round-trip (to_array() / from_array() and the corresponding getFarquharModelCoefficients / setFarquharModelCoefficients C wrappers) grew from 18 to 22 floats: slots 18–21 carry (gm_at_25C, dHa, Topt_C, dHd) for the gm temperature response. from_array still accepts the legacy 18-float layout for back-compat (gm defaults to +∞); the C wrapper still accepts 18-float buffers and only consumes the gm slots when the buffer is at least 22 elements.limitation_state uses the convention 1 = enzyme-limited, 2 = electron-transport-limited (vs. C3's 0/1). New optional output primitive data labels for the C4 model: Cm (mesophyll cytosolic CO₂) and Vp (PEP carboxylation rate).addSIFCamera() (vec3 lookat and SphericalCoord overloads) plus the new SIFCameraProperties (extends CameraProperties with excitation_bin_width_nm and excitation_scattering_depth) and the isSIFCamera() query. SIF cameras source per-band emission from the Fluspect-B kernel rather than Stefan-Boltzmann; Helios auto-creates internal excitation bands covering 400–750 nm at the requested bin width.syntheticScan() already computes: LiDARCloud.getHitData(index, label), doesHitDataExist(index, label), and getHitScanID(index), reaching intensity, distance, timestamp, target_index, target_count, deviation, nRaysHit, and any column-format fields. Added bulk single-call exports getHitDataAll(label) and getHitsXYZRGB() for large clouds.column_format is now sampled from the struck primitive (FLOAT/DOUBLE/INT/UINT) onto each hit, replacing the previously hardcoded object_label/reflectivity_lidar pair (reflectivity_lidar retains its intensity-modulation behavior). LiDARCloud.addScan() gained an optional column_format argument (default keeps prior behavior); the previously auto-copied object_label must now be listed in column_format to transfer.writePlantStructureUSD() to export a plant as a USD articulated rigid body for NVIDIA IsaacSim physics (capsule links, spherical joints with E*I/L spring/damper drives, organ mass bodies)registerGrowthFrame(), writePlantGrowthUSD(), clearGrowthFrames(), and getGrowthFrameCount() for time-sampled USD animations importable into BlenderupdateTimeseriesData() method to replace the value of an existing timeseries data point at a specified (date, time)getObjectType(), getObjectCenter(), getObjectBoundingBox(), getObjectPrimitiveUUIDs() (single/list/nested), plus per-type getters for tile, sphere, box, disk, tube, and cone objects (center, size, subdivision count, normal, vertices, radius, node/radius data, axis, length, volume)getPatchCenter(), getPatchSize(), getTriangleVertex(), getVoxelCenter(), getVoxelSize(), getPatchCount(), getTriangleCount(), getPrimitiveBoundingBox() (single UUID or list)setPrimitiveColor() for mutating the color of one primitive or a list of primitives, accepting either RGBcolor or RGBAcolorclearPrimitiveData() and listPrimitiveData() for removing and inspecting per-primitive data fieldscropDomainX(), cropDomainY(), cropDomainZ(), and cropDomain() to restrict all primitives (or a supplied UUID list) to given XYZ boundsinclude_hidden parameter to getAllPlantUUIDs() to allow querying hidden prototype primitivesdeletePlantInstance() now automatically cleans up hidden prototype primitives when all plant instances have been deleteddoesPrimitiveExist() method to check whether primitives exist by single UUID or list of UUIDsresolveMaterialTextures() method for material-based texture suppression resolution (modifies colors in-place, returns resolved texture paths)packGPUBuffers() method to pack GPU-ready geometry buffers into a single binary blob for zero-copy Three.js BufferGeometry loadingaddPatchTextured() method for creating textured patches with optional UV coordinatesclearTimeseriesData() method to remove all timeseries variables and their associated date/time values from the Contextgermination_rate parameter to buildPlantCanopyFromLibrary() to control the fraction of grid positions occupied by plantssetProgressCallback() for receiving (progress, message) updates during long-running operations like advanceTime()getPrimitiveTextureFile(), setPrimitiveTextureFile(), getPrimitiveTextureSize(), getPrimitiveTextureUV(), primitiveTextureHasTransparencyChannel(), getPrimitiveSolidFraction(), overridePrimitiveTextureColor(), usePrimitiveTextureColor(), isPrimitiveTextureColorOverridden()getPrimitiveNormal([uuid1, uuid2]) returns an ndarray of shape (N, 3))getAll* convenience methods that query all primitives in the context (e.g., getAllPrimitiveNormals())PrimitiveInfo with texture_file, texture_uv, and solid_fraction fieldsaddTimeseriesData(), setCurrentTimeseriesPoint(), queryTimeseriesData(), queryTimeseriesDate(), queryTimeseriesTime(), getTimeseriesLength(), doesTimeseriesVariableExist(), listTimeseriesVariables(), loadTabularTimeseriesData()writeCameraImageDataEXR(), writeDepthImageData(), writeDepthImageDataEXR(), writeNormDepthImage()getBackendName() and probeAnyGPUBackend() for runtime GPU backend detectionisinstance()-based type validation to PlantArchitecture and RadiationModel methods per argument type validation policyvalidate_position_like(), validate_direction_like(), and validate_size_like() validators for flexible parameter typesVK_ICD_FILENAMES for bundled MoltenVK on macOStests/manual/ directory from automatic pytest collectionPYHELIOS_TEST_VISUALIZER is set)🚨++ New Plug-in Integrated ++ 🚨
Context.seedRandomGenerator() for reproducible stochastic simulationsenableGPUAcceleration(), disableGPUAcceleration(), isGPUAccelerationEnabled(), and isGPUAccelerationAvailable()pytest-forked was missing from standard pyhelios dependenciesmagnitude() and normalize() methods to vec2 and vec3scale() method to RGBcolor and RGBAcolor for color intensity adjustmentJulianDay(), incrementDay(), and isLeapYear() methods to DatescaleConeObjectLength() and scaleConeObjectGirth() methods for cone object manipulationsetAtmosphericConditions(), getAtmosphericConditions(), and parameter-free flux methodsgetAmbientLongwaveFlux() for ambient longwave radiation calculationenablePragueSkyModel(), updatePragueSkyModel(), isPragueSkyModelEnabled(), and pragueSkyModelNeedsUpdate()optionalOutputPrimitiveData() for selective biochemical property output (chlorophyll, carotenoid, water, etc.)loadXML() method for loading custom tree species from XML filesbuildTree() to accept custom species names (strings) in addition to WPTType enum🚨++ New Plug-in Integrated ++ 🚨
addMaterial(), setMaterialColor(), setMaterialTexture(), and material assignment methodsaddRadiationCameraFromLibrary() for preconfigured camera modelsupdateCameraParameters() and enableCameraMetadata() for camera managementcalculateDirectSolarSpectrum(), calculateDiffuseSolarSpectrum(), and calculateGlobalSolarSpectrum()__del__ methods, which should be fixed now.Context.setPrimitiveData[*]() to accept a list of UUIDsContext.deletePrimitive() and Context.deleteObject() methodsContext.writePrimitiveData() method to write primitive data to a fileaddRectangleRadiationSource(), addDiskRadiationSource()setSourcePosition(), getSourcePosition(), deleteRadiationSource()setSourceSpectrum(), integrateSpectrum(), scaleSpectrum(), blendSpectra()setDiffuseRadiationExtinctionCoeff(), setDiffuseSpectrum(), getDiffuseFlux()doesBandExist(), getSkyEnergy(), calculateGtheta(), enforcePeriodicBoundary()copyRadiationBand() to support optional wavelength range parametersaddPlantInstance(), addBaseStemShoot(), and addChildShoot()plantDoesCollide()AxisRotation data type for shoot rotation controlplantarch_custom_building_sample.py, plantarch_collision_sample.py, plantarch_file_io_sample.pypyhelios_build directorypyhelios/runtime/ directory to git control🚨++ New Plug-in Integrated ++ 🚨
🚨++ New Plug-in Integrated ++ 🚨
Improved Error Handling, Build System Optimization, and Testing Infrastructure
🎉PyPI package distribution should now be working for all integrated plug-ins 🎉
Enhanced Build System and GPU Runtime Detection
PyPI Package Distribution Fixes
Many documentation error fixes
writePLY(), writeOBJ() methods with comprehensive parameter support🎉++ PyPI Package Distribution ++ 🎉
pip install pyhelios3d🚨++ New Plug-in Integrated ++ 🚨
🚨++ New Plug-in Integrated ++ 🚨
🚨++ New Plug-in Integrated ++ 🚨
--plugins visualizer)🚨++ New Plug-in Integrated ++ 🚨
Visualizer.colorContextPrimitivesByData()Context.loadPLY(), Context.loadOBJ(), and Context.loadXML() methodsContext.loadPLY() with 5 overloads supporting origin, height, rotation, color, and upaxis transformationsContext.loadOBJ() with 4 overloads including scale transformations and upaxis specificationContext.loadXML() implementation for Helios XML geometry filesContext.addTriangleTextured()Context.addTrianglesFromArraysTextured()suzanne.ply, suzanne.obj, suzanne.mtl, and leaf_cube.xmlexternal_geometry_sample.py and stanford_bunny_radiation.py for demonstrationaddTile(), addSphere(), addTube(), addBox(), and addCone() methods (with color variants)primitive_data_array_example.py demonstrating numpy array integrationstanford_bunny_radiation.py with improved visualization workflowsimple_radiation_test.pyFix helios-core submodule to point to correct remote commit
🎉 Initial version! 🎉
visualizerradiationweber-penn tree