summaryrefslogtreecommitdiff
path: root/scene/resources/primitive_meshes.cpp
AgeCommit message (Collapse)Author
2023-01-18Implement BiDi override mode for GDScript source.bruvzg
2023-01-08Use BitField<> hint for ArrayFormatJuan Linietsky
This was missing in the conversion of bitflags to BitField<>.
2023-01-05One Copyright Update to rule them allRémi Verschelde
As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
2022-12-29Add safety-checks before some servers `free()`Adam Scott
2022-12-19Add properties to disable top/bottom cap generation in TubeTrailMeshHugo Locurcio
This can be used to improve generation and rendering performance, or for certain special effects such as particle trails.
2022-11-24Refactor interpolating functions in some classes to use Math classSilc Renew
2022-11-14Fix misc formatting issuesRémi Verschelde
Somehow I missed the failing CI report from trailing whitespace. Fixed a couple typos found by codespell while at it, and misc trailing semicolons in one of the files.
2022-11-13Add optional UV2 logic for lightmapping to primitive shapesBastiaan Olij
2022-10-13Merge pull request #67336 from jbcolli2/Normal-of-CylinderMeshRémi Verschelde
Fix bug in CylinderMesh when computing normals
2022-10-13Changed normal of CylinderMesh to account for slanted side.jbcolli2
2022-10-08Remove leading spaces from enumerator name hintsHaoyu Qiu
For `PROPERTY_HINT_ENUM` properties, enumerator names can be provided as a comma separated list. There're a few properties that add leading spaces to the names (e.g. `First, Second, Third`). These spaces are included in the Inspector dropdown, which is unexpected. It's better to leave the surrounding spaces untouched because it could be part of the resulting string value (the variable is a string enum). And most other enum hints don't contain surrounding whitespaces. This PR removes the spaces and documents this `PROPERTY_HINT_ENUM` behavior.
2022-10-07Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg
change warnings=all to use /W4.
2022-09-06Rename `range_lerp` to `remap`Micky
2022-08-30Rename Curve/Curve2D/Curve3D/Gradient `interpolate()` to `sample()`Hugo Locurcio
"sampling" is a more accurate term than "interpolating" for what's happening when using that function.
2022-08-26Add ThemeDB, expose previously static Theme methodsYuri Sizov
2022-08-26Merge pull request #64243 from bruvzg/multiline_textmeshRémi Verschelde
2022-08-25Merge pull request #64801 from clayjohn/plane-quadRémi Verschelde
Remove QuadMesh and add orientation parameter to PlaneMesh
2022-08-24Remove QuadMesh and add orientation parameter to PlaneMeshclayjohn
2022-08-23Replace Array return types with TypedArray 2kobewi
2022-08-10Add line breaking support to the TextMesh.bruvzg
2022-08-04Add `TorusMesh`hoontee
2022-07-06Refactor Font configuration and import UI, and Font resources.bruvzg
2022-07-04Use custom key structs, instead of raw hashes for the Label3D and TextMesh, ↵bruvzg
to avoid potential hash collisions.
2022-06-22Fix CapsuleMesh loading issue (radius reset)tefusion
2022-06-20Clean up Hash Functionsreduz
Clean up and do fixes to hash functions and newly introduced murmur3 hashes in #61934 * Clean up usage of murmur3 * Fixed usages of binary murmur3 on floats (this is invalid) * Changed DJB2 to use xor (which seems to be better)
2022-06-11Add suffixes to all nodes and resourcesFireForge
2022-05-25Merge pull request #61355 from bruvzg/text_mesh_fix_fill_alignRémi Verschelde
[TextMesh] Fix incorrectly applied FILL alignment.
2022-05-24Tweak TextMesh decomposition error message to mention self-intersecting linesHugo Locurcio
2022-05-24[TextMesh] Fix incorrectly applied FILL alignment.bruvzg
2022-05-24Merge pull request #61203 from Calinou/cylindermesh-add-cap-propertiesRémi Verschelde
Add properties to disable top/bottom cap generation in CylinderMesh
2022-05-23Fix typos with codespellRémi Verschelde
Using codespell 2.2-dev from current git.
2022-05-23[TextMesh] Do not generate meshes for non-visual glyphs.bruvzg
2022-05-22[TextMesh] Fix cubic cubic Bezier arc processing.bruvzg
2022-05-21Add properties to disable top/bottom cap generation in CylinderMeshHugo Locurcio
2022-05-19Use suffixes for units in nodes and resourcesAaron Franke
2022-05-13Implement TextMesh resource.bruvzg
Apply simulated slant and embolden to the TextServer `gont_get_glyph_contours` results.
2022-05-03Merge pull request #58777 from Sauermann/fix-capsulemesh-tangentRémi Verschelde
Reverse tangents of capsule mesh
2022-04-08Fix navmesh bakingPawel Lampe
- improved mesh data calculation from standalone static colliders so that no VisualServer calls are performed - and thus no VS mutexes need to be locked in case of on-thread baking - improved the same for GridMap's static colliders
2022-03-10Discern between virtual and abstract class bindingsreduz
* Previous "virtual" classes (which can't be instantiated) are not corretly named "abstract". * Added a new "virtual" category for classes, they can't be instantiated from the editor, but can be inherited from script and extensions. * Converted a large amount of classes from "abstract" to "virtual" where it makes sense. Most classes that make sense have been converted. Missing: * Physics servers * VideoStream * Script* classes. which will go in a separate PR due to the complexity involved.
2022-03-05Reverse tangents of capsule meshMarkus Sauermann
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2021-09-28Fixes the normals of SphereMesh when the radius is different from 1Duarte David
2021-09-27QuadMesh remove format ARRAY_FORMAT_INDEXBrian Semrau
2021-08-22Fixes the normals of SphereMesh when the sphere/hemisphere is oblongDuarte David
2021-08-11Make radius & height in CapsuleShape3D independentPouleyKetchoupp
Also changed CapsuleMesh to make settings consistent between render and physics.
2021-07-11added offset for plane mesh and quad meshQbieShay
2021-07-04Allow using ORMMaterial3D by using BaseMaterial3D as a resource hintHugo Locurcio
Previously, only StandardMaterial3D could be defined as an alternative to ShaderMaterial. This also reorders the CanvasItemMaterial property hints to follow alphabetical order (which is enforced by the inspector).
2021-06-23Allow a top and bottom radius equal to 0 in CylinderMeshHugo Locurcio
The CylinderMesh generation code handles this special case and avoids generating the top and bottom faces if their radius is equal to 0. This improves performance by reducing the number of vertices to draw. If both values are set to 0, nothing will be visible but the mesh generation will still succeed. This also improves the CylinderMesh class documentation.
2021-06-03Rename Transform to Transform3D in coreAaron Franke
2021-05-16Fix normals of PrismMeshJohn Wigg