{"id":19383495,"url":"https://github.com/stellardx/cspaceengine-project-vs-edition","last_synced_at":"2025-04-23T21:31:56.545Z","repository":{"id":40678565,"uuid":"487239482","full_name":"StellarDX/CSpaceEngine-Project-VS-Edition","owner":"StellarDX","description":"A simple C++ static library for astronomic calculation and modding SpaceEngine","archived":true,"fork":false,"pushed_at":"2024-01-24T10:12:51.000Z","size":9107,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-24T17:17:26.746Z","etag":null,"topics":["astronomy","astronomy-library","cpp","library","spaceengine"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StellarDX.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-30T09:49:08.000Z","updated_at":"2024-03-24T05:14:02.000Z","dependencies_parsed_at":"2023-02-19T05:16:01.033Z","dependency_job_id":"d86ff7a0-d3b6-49fb-af99-7f14ebcb3634","html_url":"https://github.com/StellarDX/CSpaceEngine-Project-VS-Edition","commit_stats":null,"previous_names":["stellardx/cspaceengine-project-vs-edition","stellardx/cspaceengine-project-2nd-edition"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StellarDX%2FCSpaceEngine-Project-VS-Edition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StellarDX%2FCSpaceEngine-Project-VS-Edition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StellarDX%2FCSpaceEngine-Project-VS-Edition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StellarDX%2FCSpaceEngine-Project-VS-Edition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StellarDX","download_url":"https://codeload.github.com/StellarDX/CSpaceEngine-Project-VS-Edition/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250517865,"owners_count":21443855,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["astronomy","astronomy-library","cpp","library","spaceengine"],"created_at":"2024-11-10T09:26:25.999Z","updated_at":"2025-04-23T21:31:56.537Z","avatar_url":"https://github.com/StellarDX.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# CSpaceEngine - A static library and toolbox for SpaceEngine\n\n[中文](README_CN.md)\n\nUsing C++ to define, modify, complete Celestral Objects in SpaceEngine.\n\nLicense: [GPLv2](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html)\n\n## NOTICE：\nThis project has been refactored and no longer update, [Click here](https://github.com/StellarDX/CSpaceEngine-Project) to enter the new repository.\n\n## Examples\n**Loading a sc file**\n```loading file\nISCStream is = ParseFile(\"Catalog.sc\");\nObject obj = GetSEObject(is, \"StarName\");\n```\n\n**Writing object to file**\n```writing file\nofstream fout(\"out.sc\"); // Create a fstream. This will be used to construct sc file writer\nOSCStream os(fout);\nos \u003c\u003c obj1 \u003c\u003c obj2 \u003c\u003c ...; // push objects\nos.Write(); // export to file\n```\n\n**Time Support(Windows only)**\n * A Julian epoch calculator based on this library is provided, See [Here](Applications/JulianConvert/JulianCalculator.cpp) to get more info.\n\n**Math functions(Based on STD Math)**\n * Expands of Trigonometric functions like chords, versines and exsecants.\n * Basic math functions for vecs\n * Solving polynomial equations\n * Algorithms from GLSL\n * A basic matrix class and linear algebra functions\n\n**Star Luminosity calculations**\n * A Star Luminosity and Magnitude calculator based on this library is provided, See [Here](Applications/StarMagLumCalculator/StarMagLumCalculator.cpp) to get more info.\n\n**Random Number Generator**\n * Based on std random, more easy to use.\n * A default random engine \"random\" is provided.\n\n**Creating a star**\n```generating\n_CSE_Random_Engine\u003cmt19937_64\u003e Engine;\nMainSequenceStarModel StarModel(\"G2V\");\nobject_generator\u003c_CSE_Random_Engine\u003cmt19937_64\u003e, MainSequenceStarModel\u003e gen(Engine, StarModel);\nObject Obj = gen();\n```\n * Support stars:\n * - Main sequence stars\n * - Red Giant Branch\n * - Horizontal Branch(Red Clump Giants)\n * - Asymptotic giant branch(Super-AGB)\n * - Subdwarfs(Cool, O, B)\n * - Wolf-Rayet stars\n * - Subgiants\n * - Blue Giants\n * - Supergiants and hypergiants\n * - Carbon Stars\n * - White Dwarfs\n * - Substellar Objects\n\n**Creating a planet**\n\nCodes are almost same as above. Support rocky planets and gas giants.\n\nAn Asteroid belt creator C++ version is provided: [AsterBeltCreator](Applications/AsterBeltCreator/AsterBeltCreator.cpp)\n\n**Orbit Calculating**\n * Some engines to generate distance array, Support Titius-Bode law, Blagg Fomula, Dermott's law and exponential fit.\n * TLE data parsing\n * calcualte Roche limit and Hill sphere, and make orbital bond to two objects.\n\n## Compile and Install\nOpen the solution file and turn to the \"ALL_BUILD\" under \"Targets\", Run the project to complie.\nThe compiled libraries are under the \"Libraries\" folder.\nIf you want to merge all the module libraries into one library, Run \"INSTALL\" project.\n\n## TODO\n * ...and more?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellardx%2Fcspaceengine-project-vs-edition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstellardx%2Fcspaceengine-project-vs-edition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellardx%2Fcspaceengine-project-vs-edition/lists"}